X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=testsuite%2Fiproute2%2FMakefile;fp=testsuite%2Fiproute2%2FMakefile;h=ba128aa78d5f64469dcb692c9e26578c9bc490c7;hb=fcabec0aee42af28e2846ef3674ed7ba7be72c42;hp=0000000000000000000000000000000000000000;hpb=cb820e861caa85bb3942ab0c673e04b9408be0ad;p=iproute2.git diff --git a/testsuite/iproute2/Makefile b/testsuite/iproute2/Makefile new file mode 100644 index 0000000..ba128aa --- /dev/null +++ b/testsuite/iproute2/Makefile @@ -0,0 +1,33 @@ +SUBDIRS := $(filter-out Makefile,$(wildcard *)) +.PHONY: all configure clean distclean show $(SUBDIRS) + +all: configure + @for dir in $(SUBDIRS); do \ + echo "Entering $$dir" && cd $$dir && $(MAKE) && cd ..; \ + done + +link: + @if [ ! -L iproute2-this ]; then \ + ln -s ../.. iproute2-this; \ + fi + +configure: link + @for dir in $(SUBDIRS); do \ + echo "Entering $$dir" && cd $$dir && if [ -f configure ]; then ./configure; fi && cd ..; \ + done + +clean: link + @for dir in $(SUBDIRS); do \ + echo "Entering $$dir" && cd $$dir && $(MAKE) clean && cd ..; \ + done + +distclean: clean + @for dir in $(SUBDIRS); do \ + echo "Entering $$dir" && cd $$dir && $(MAKE) distclean && cd ..; \ + done + +show: link + @echo "$(SUBDIRS)" + +$(SUBDIRS): + cd $@ && $(MAKE)