This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Install question


>>> "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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]