LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2004, 04:27 AM   #1
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
How to make rule for make install and make uninstall


Hey, I try to learn autoconf and automake so I can make tarball of my program. Ok, I kinda understand.... but consider this. After compiling with 'make' command, I got:
binary: myprogram, daemon ( Yes, my program is actually two program, the frontend and the daemon )
glade file: myprogram.glade ( Yes, I am using Glade, and my program depend on this to load up, so the glade file and the binary have to be in same directory )
graphic file: myprogram.png ( Yes, myprogram.glade need it as its icon )

After doing autoblablabla ( autoconf, touch README, automake, and etc )
I run this:
./configure
make
make install

The 'make install' command try to copy myprogram and daemon into /usr/local/bin. It is good. But How do I manipulate Makefile so that 'make install' command will copy binary, glade file, graphic file into spesific directory ( for example /usr/local/bin )?

And what about 'make uninstall'?
 
Old 06-14-2004, 06:58 AM   #2
sam028
LQ Newbie
 
Registered: Jun 2004
Location: France
Distribution: Fedora, Mandrake
Posts: 8

Rep: Reputation: 0
I think that you might include something in your Makefile.am:

fooconfdir = ${prefix}/data
fooconf_DATA = foo.png foo.glade
EXTRA_DIST = $(fooconf_DATA)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
make: *** No rule to make target 'menuconfig' yussef Debian 10 12-22-2005 10:23 AM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 12:19 PM
make: *** No rule to make target 'gconfig'. Stop. cswake Slackware 4 10-10-2004 01:13 PM
Error "make: *** No rule to make target `install'. Stop." help Ohmn Mandriva 8 07-02-2004 08:02 PM
make: **** No rule to make target 'bzImage' qingjuan Linux - General 5 04-02-2002 05:04 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:00 PM.

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