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