SOURCES = $(wildcard */*.dsp)
-DIRS = sinwave fft primitives # 2d_fft close fft open sinwave dilation erosion licenseplate primitives
-
-all: eachexample
-
-define mytarget
- eachexample:: ; $(MAKE) -C $1
-endef
-
-$(foreach dir,$(DIRS),$(eval $(call mytarget,$(dir))))
+all: $(SOURCES)
+