-define mytarget
- eachexample:: ; $(MAKE) -C $1
-endef
-
-$(foreach dir,$(DIRS),$(eval $(call mytarget,$(dir))))
+examples::
+ @echo "Making all the examples, it may take several minutes..."
+ @$(foreach example, $(EXAMPLES), $(MAKE) -C $(example);)