just use subdir clean rules for unsorted examples build

This commit is contained in:
Mike Blumenkrantz 2018-08-17 14:02:28 -04:00
parent 3fd4ac3b46
commit 56623240b7
1 changed files with 10 additions and 1 deletions

View File

@ -31,4 +31,13 @@ all:
fi
clean:
git clean -dxf .
for d in $(EXAMPLES_SUBDIRS); do \
echo "Making examples in $$d"; \
$(MAKE) $(AM_MAKEFLAGS) -C $$d -f Makefile.examples clean || exit 1; \
done
if pkg-config --exists eolian-cxx ; then \
for d in $(CXX_EXAMPLES_SUBDIRS) ; do \
echo "Making examples in $$d"; \
$(MAKE) $(AM_MAKEFLAGS) -C $$d -f Makefile.examples clean || exit 1; \
done \
fi