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