automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to setup an example programs subdirectory?


From: Simon Perreault
Subject: Re: How to setup an example programs subdirectory?
Date: Sun, 2 Jan 2005 13:08:22 -0500
User-agent: KMail/1.7.1

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?

-- 
Simon Perreault <address@hidden> -- http://nomis80.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]