]> CRI, Mines Paris - PSL - Faustine.git/blobdiff - examples/Makefile
Examples Makefile.
[Faustine.git] / examples / Makefile
index 66667e1feedcc05ff649b925eeccd5c146875a23..b004c8847f7be260247dab76fc3631c830c602d9 100644 (file)
@@ -1,4 +1,11 @@
 SOURCES = $(wildcard */*.dsp)
+DIRS = sinwave fft primitives # 2d_fft close fft open sinwave dilation erosion licenseplate primitives
+
+all: make-each-example
+
+define mytarget
+  make-each-example:: ; $(MAKE) -C $1
+endef
+
+$(foreach dir,$(DIRS),$(eval $(call mytarget,$(dir))))
 
-all: $(SOURCES)
-