automake and install of multiple targets
My question pertains to the use of automake when installing multiple targets.
In particular, I want to do a `make install` for just program1 of the bin_PROGRAMS in the Makefile.am below. Unfortunately from what I can tell there is no install_program1 target generated by automake, just an install target which compiles and installs all programs defined in the bin_PROGRAMS declaration. The machine I am working on does not have all the dependencies for program2, and I would rather not hack up the Makefile.am just for building on this particular machine. I only want to build program1. Any ideas?
TIA,
Marc
INCLUDES = \
-I/usr/include \
-I$(prefix)/include
CXXFLAGS = \
-g
AM_CXXFLAGS =
bin_PROGRAMS = \
program1 program2
program1_SOURCES = \
program1.cpp
program1_LDADD = \
-L$(prefix)/lib -ltest
program2_SOURCES = \
program2.cpp
program2_LDADD = \
-L$(prefix)/lib -ltest2
|