LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2005, 04:08 PM   #1
therf
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
makefile targets dand Programming 1 07-11-2005 03:28 PM
install-data in automake MadCactus Programming 0 12-20-2004 05:22 AM
Scribus installation problem, sez I need automake 1.6 when automake 1.9 is istalled Rockgod2099 Linux - Software 13 11-14-2004 06:37 PM
make with multiple targets eskimo22 Programming 1 02-26-2004 11:42 AM
slackware 9 asking for automake 1.6 while i have automake 1.7 gtgoku Slackware 1 10-19-2003 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration