Re: How to setup an example programs subdirectory?

2005-01-16 Thread Simon Perreault
On January 11, 2005 06:16, Stepan Kasal wrote: Another approach would be to put the subdir into SUBDIRS, but prevent the target `all' from making the programs there: [...] Thank you! This is much better and cleaner than what I had proposed. This is exactly what I needed. -- Simon Perreault

Re: How to setup an example programs subdirectory?

2005-01-11 Thread Stepan Kasal
Hi, On Sun, Jan 02, 2005 at 01:08:22PM -0500, Simon Perreault wrote: SUBDIRS = ... DIST_SUBDIRS = $(SUBDIRS) examples .PHONY: examples clean-examples examples: all ( cd $(top_builddir)/examples $(MAKE) $(MFLAGS) ) clean-examples: ( cd $(top_builddir)/examples $(MAKE)

Re: How to setup an example programs subdirectory?

2005-01-03 Thread Ralf Corsepius
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

Re: How to setup an example programs subdirectory?

2005-01-02 Thread Guido Draheim
DIST_SUBDIRS = lib bin examples SUBDIRS = lib bin @EXAMPLES@ Simon Perreault wrote: Hi, I have a question for which I haven't been able to find an answer on my own, using the usual resources (manual, google, etc). My project uses automake and I want to have a directory containing example

Re: How to setup an example programs subdirectory?

2005-01-02 Thread Simon Perreault
On Sunday January 2 2005 02:56, Robert Collins wrote: IIRC - untested: === EXTRA_PROGRAMS=foo bar examples: $(EXTRA_PROGRAMS) Thank you for your answer, but I don't understand how I can apply that to my project, which uses an examples subdirectory where example programs are located. Am I

Re: How to setup an example programs subdirectory?

2005-01-02 Thread Simon Perreault
On Sunday January 2 2005 04:30, Guido Draheim wrote: DIST_SUBDIRS = lib bin examples SUBDIRS = lib bin @EXAMPLES@ Thank you for your answer, but there seems to be something missing or maybe I didn't understand something. I have used these lines: DIST_SUBDIRS = wrap tests examples SUBDIRS =

Re: How to setup an example programs subdirectory?

2005-01-02 Thread Simon Perreault
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.

Re: How to setup an example programs subdirectory?

2005-01-02 Thread Ralf Corsepius
On Sun, 2005-01-02 at 10:54 -0500, Simon Perreault wrote: On Sunday January 2 2005 04:30, Guido Draheim wrote: DIST_SUBDIRS = lib bin examples SUBDIRS = lib bin @EXAMPLES@ Thank you for your answer, but there seems to be something missing or maybe I didn't understand something. I have

How to setup an example programs subdirectory?

2005-01-01 Thread Simon Perreault
Hi, I have a question for which I haven't been able to find an answer on my own, using the usual resources (manual, google, etc). My project uses automake and I want to have a directory containing example programs. These programs should not be built on a simple make, but could be built on a

Re: How to setup an example programs subdirectory?

2005-01-01 Thread Robert Collins
On Sat, 2005-01-01 at 20:24 -0500, Simon Perreault wrote: Hi, I have a question for which I haven't been able to find an answer on my own, using the usual resources (manual, google, etc). My project uses automake and I want to have a directory containing example programs. These programs