automake
[Top][All Lists]
Advanced

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

Re: Install question


From: Alexandre Duret-Lutz
Subject: Re: Install question
Date: Wed, 23 Jan 2002 14:46:29 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i386-debian-linux-gnu)

>>> "Patrick" == Patrick Guio <address@hidden> writes:

[...]

 Patrick> # don't install the exec's
 Patrick> noinst_PROGRAMS = ex1 ex2

 Patrick> # build rules
 Patrick> ex1_SOURCES = ex1.cpp
 Patrick> ex2_SOURCES = ex2.cpp

 Patrick> The "make distdir" works. The "make install" needs the
 Patrick> exec's to be built which I don't want since I just
 Patrick> want to install the .cpp files and in addition I have
 Patrick> a target to build the examples "make check-examples"

 Patrick> check-examples: $(noinst_PROGRAMS)

 Patrick> How do I do to avoid when running just "make" or "make all" that make
 Patrick> build the examples?

You can use EXTRA_PROGRAMS for this purpose.  This will output
the rules needed to build the programs and distribute their
sources, but it won't automatically build the programs in `make
dist' nor install them during `make install'.

EXTRA_PROGRAMS = ex1 ex2
ex1_SOURCES = ex1.cpp
ex2_SOURCES = ex2.cpp
check-examples: $(EXTRA_PROGRAMS)
-- 
Alexandre Duret-Lutz




reply via email to

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