-SOURCES = $(wildcard */*.dsp)
+EXAMPLES = 2d_fft close dilation erosion fft open primitives sinwave #licenceplate
-all: $(SOURCES)
-
+all: examples
+
+examples::
+ @echo "Making all the examples, it may take several minutes..."
+ @$(foreach example, $(EXAMPLES), $(MAKE) -C $(example);)
+
+clean::
+ @$(foreach example, $(EXAMPLES), $(MAKE) -C $(example) clean;)