Hi!

At this time I have experience with Makefiles for real compiling only.

Now I have my own library sources. They should be placed in directory of 
compiller include path, as well as documentation should be placed to the 
system documentation directory.

If library is named foo and it's sources and documentation are in the `src' 
and `doc' directories, awful shell script is

#!/bin/sh

rm -rf /usr/include/foo
mkdir /usr/include/foo
cp -r src/* /usr/include/foo

rm -rf /usr/share/doc/foo
mkdir /usr/share/doc/foo
cp -r doc/* /usr/share/doc/foo

How can I write more flexible Makefile without fixed directory destinations 
and ability to uninstall everything?

Cold you give me a quick recipe, please?

-- 
Pungenday, Discord 10th, 3173. 2430428 days until X-Day.
Alexey Beshenov <[EMAIL PROTECTED]>
http://beshenov.livejournal.com/
+7 960 15 30 767 / +7 950 80 300 18


Reply via email to