[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to setup an example programs subdirectory?
From: |
Ralf Corsepius |
Subject: |
Re: How to setup an example programs subdirectory? |
Date: |
Mon, 03 Jan 2005 09:01:43 +0100 |
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