]> git.ipfire.org Git - thirdparty/dracut.git/blob - test/Makefile
move setting the "systemdutildir" variable before it's used
[thirdparty/dracut.git] / test / Makefile
1 .PHONY: all check clean $(wildcard TEST-??-*)
2
3 $(wildcard TEST-??-*):
4 @[ "$$EUID" == "0" ] || { echo "'check' must be run as root! Please use 'sudo'."; exit 1; }
5 @{ \
6 [ -d $@ ] || exit 0; \
7 [ -f $@/Makefile ] || exit 0; \
8 if [ -n "$$TESTS" ]; then t=$${$@##TEST-}; t=$${t%%-*}; [ "$${TESTS#*$$t*}" != "$$TESTS" ] || exit 0; fi; \
9 if [ -n "$$SKIP" ]; then t=$${$@##TEST-}; t=$${t%%-*}; [ "$${SKIP#*$$t*}" != "$$SKIP" ] && exit 0; fi; \
10 $(MAKE) -C $@ all ; \
11 }
12
13 check: $(wildcard TEST-??-*)
14
15 clean:
16 @for i in TEST-[0-9]*; do \
17 [ -d $$i ] || continue ; \
18 [ -f $$i/Makefile ] || continue ; \
19 $(MAKE) -C $$i clean ; \
20 done
21
22 all:
23