This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Install question
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- To: Patrick Guio <patrick dot guio at fys dot uio dot no>
- Cc: Tom Tromey <tromey at redhat dot com>, <automake at gnu dot org>
- Date: Wed, 23 Jan 2002 14:46:29 +0100
- Subject: Re: Install question
- References: <Pine.LNX.4.30.0201231246470.3167-100000@fyspc-rp18.uio.no>
>>> "Patrick" == Patrick Guio <patrick.guio@fys.uio.no> 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