LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   How to make rule for make install and make uninstall (http://www.linuxquestions.org/questions/programming-9/how-to-make-rule-for-make-install-and-make-uninstall-193239/)

melinda_sayang 06-14-2004 03:27 AM

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'?

sam028 06-14-2004 05:58 AM

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

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


All times are GMT -5. The time now is 10:54 AM.