X-Git-Url: https://svn.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/31089f037dce058e4bfd398bb64091522d9ba4df..13f27ae45e641f43a9f7cd2cc6ceef016737ad13:/examples/Makefile?ds=sidebyside diff --git a/examples/Makefile b/examples/Makefile index b004c88..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: make-each-example +all: examples -define mytarget - make-each-example:: ; $(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 */*~