On Sun, 2005-01-02 at 13:08 -0500, Simon Perreault wrote: > Just to let everyone know that I found a solution to my problem. The correct > search string in Google was 'automake "make examples"', where I could find > Makefile.am's of people who had been there before. I could then extend those > a bit so that "make clean" would also clean the examples. > > ============================================================================ > SUBDIRS = ... > DIST_SUBDIRS = $(SUBDIRS) examples > > .PHONY: examples clean-examples > > examples: all > ( cd $(top_builddir)/examples && $(MAKE) $(MFLAGS) ) > > clean-examples: > ( cd $(top_builddir)/examples && $(MAKE) $(MFLAGS) clean ) > > clean-local: clean-examples > ============================================================================ > > Comments? Improvements? It is a bad example.
The Makefile-fragment above works around automake by using manually written make rules - I would recommend you not to use it. Ralf