1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

makefiles: cleanup update

Cleanup also test dir.
Distclean unit tests.
This commit is contained in:
Zdenek Kabelac 2013-06-03 12:05:02 +02:00
parent eb2c68590b
commit 9b2be901ed
2 changed files with 12 additions and 3 deletions

View File

@ -38,6 +38,9 @@ endif
SUBDIRS += scripts
ifeq ($(MAKECMDGOALS),clean)
SUBDIRS += test
endif
# FIXME Should use intermediate Makefiles here!
ifeq ($(MAKECMDGOALS),distclean)
SUBDIRS = doc include man test scripts \

View File

@ -1,4 +1,4 @@
# Copyright (C) 2011-2012 Red Hat, Inc. All rights reserved.
# Copyright (C) 2011-2013 Red Hat, Inc. All rights reserved.
#
# This file is part of LVM2.
#
@ -15,8 +15,14 @@ top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
VPATH = $(srcdir)
ifeq ("@TESTING@", "yes")
SOURCES = bitset_t.c matcher_t.c config_t.c string_t.c run.c
UNITS = bitset_t.c matcher_t.c config_t.c string_t.c run.c
ifeq ($(MAKECMDGOALS),distclean)
SOURCES = $(UNITS)
endif
ifeq ("$(TESTING)", "yes")
SOURCES = $(UNITS)
TARGETS = run
endif