# HG changeset patch # User Jeandet Alexis # Date 2016-11-09 10:46:43 # Node ID cc8f80f527e51b67e53155cacd850cab29ed14ab # Parent 9af55c8d1a6ed8c3cf2843feaf4643dc6b36d850 Fixed Makefile. Now correctly forward targets to subfolders diff --git a/tests/Makefile b/tests/Makefile --- a/tests/Makefile +++ b/tests/Makefile @@ -1,23 +1,10 @@ -SUBDIRS=Validation_IIR_f0_LFR \ - Validation_IIR_f1_LFR \ - Validation_LFR_Filters - -SUBDIRS_distclean:=$(SUBDIRS) -SUBDIRS_test:=$(SUBDIRS) - -.PHONY: distclean test $(SUBDIRS) +SUBDIRS := $(shell find ./ -maxdepth 1 -mindepth 1 -type d) -all: - echo "" - -test: $(SUBDIRS_test) +all : -distclean: $(SUBDIRS_distclean) - -$(SUBDIRS_distclean): - $(MAKE) -C $@ distclean - -$(SUBDIRS_test): - $(MAKE) -C $@ test +.PHONY: force +%: + -for d in $(SUBDIRS); do (cd $$d; $(MAKE) $@ ); done +