summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-17 12:05:34 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-17 12:05:34 +0000
commit05e5500c725660464eb10ac277b849d9ff68d97c (patch)
tree961d7524eae4b103a9dd5dd0b147feb4c10ec343 /test
parent22461470c0ed628043cd2aa25ef1d7ec3235ac36 (diff)
dynamically build the DIRS variables so i dont have to keep updating it all the time
Diffstat (limited to 'test')
-rw-r--r--test/Makefile25
1 files changed, 11 insertions, 14 deletions
diff --git a/test/Makefile b/test/Makefile
index 75e57a0d7..1402c4ca9 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -9,25 +9,22 @@ top_builddir=../
-include $(top_builddir).config
include Rules.mak
-ALL_SUBDIRS := \
- args assert crypt ctype mmap misc pwd_grp setjmp signal silly stat \
- stdlib string termios unistd
-DIRS := $(ALL_SUBDIRS)
+ALL_SUBDIRS := $(patsubst %/Makefile,%,$(wildcard */Makefile))
-ifeq ($(HAVE_SHARED)$(UCLIBC_HAS_THREADS),yy)
-ifeq ($(findstring -static,$(LDFLAGS)),)
- DIRS += dlopen
+DIRS := $(ALL_SUBDIRS)
+ifneq ($(HAVE_SHARED)$(UCLIBC_HAS_THREADS),yy)
+ DIRS := $(filter-out dlopen,$(DIRS))
endif
+ifneq ($(findstring -static,$(LDFLAGS)),)
+ DIRS := $(filter-out dlopen,$(DIRS))
endif
-ifeq ($(UCLIBC_HAS_THREADS),y)
- DIRS += pthread
+ifneq ($(UCLIBC_HAS_THREADS),y)
+ DIRS := $(filter-out pthread,$(DIRS))
endif
-ifeq ($(UCLIBC_HAS_FULL_RPC),y)
- DIRS += rpc
+ifneq ($(UCLIBC_HAS_FULL_RPC),y)
+ DIRS := $(filter-out rpc,$(DIRS))
endif
-ALL_SUBDIRS += dlopen pthread rpc
-ALL_SUBDIRS := $(sort $(ALL_SUBDIRS))
-DIRS := $(sort $(DIRS))
+DIRS := $(filter-out math,$(DIRS))
test check all: subdirs