chiark / gitweb /
test/TEST-01-BASIC: only test systemd-nspawn, if the test system uses systemd
[elogind.git] / test / Makefile
index 9aa46b4eb6bfb58f5ee477242b46c0d94f43fe48..987a32548f370d5a4094b216823658a59695f50f 100644 (file)
@@ -1,7 +1,20 @@
 # Just a little hook script to easy building when in this directory
+.PHONY: all check clean
 
 all:
        $(MAKE) -C ..
 
 clean:
-       $(MAKE) -C .. clean
+       @for i in TEST-[0-9]*; do \
+               [ -d $$i ] || continue ; \
+               [ -f $$i/Makefile ] || continue ; \
+               make -C $$i clean ; \
+       done
+
+check:
+       $(MAKE) -C .. all
+       @for i in TEST-[0-9]*; do \
+               [ -d $$i ] || continue ; \
+               [ -f $$i/Makefile ] || continue ; \
+               make -C $$i all ; \
+       done