X-Git-Url: https://scm.cri.mines-paristech.fr/git/Faustine.git/blobdiff_plain/2a4b3defeda7a2dbe3cf0b392455b96369ae1825..912dbfbf1eb4809f28e4e3a8bdfe76c47e018259:/examples/Makefile?ds=sidebyside diff --git a/examples/Makefile b/examples/Makefile index e66137f..7163a89 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,11 +1,11 @@ -SOURCES = $(wildcard */*.dsp) -DIRS = sinwave fft primitives # 2d_fft close fft open sinwave dilation erosion licenseplate primitives +EXAMPLES = 2d_fft close dilation erosion fft open primitives sinwave #licenceplate -all: eachexample +all: examples -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);) +clean:: + @$(foreach example, $(EXAMPLES), $(MAKE) -C $(example) clean;) + rm -f */*~