makefile for checkinstall
m.w.chang
mwchang
Mon May 17 11:37:21 PDT 2004
thx. here is my makefile.checkinstall
I guess I should learn to write a ./configure script
-- begin quote ---
all:
make -C installwatch-0.6.3
install: all
# can't figure how to automate this part
# vi installwatch-0.6.3/Makefile
# set PREFIX=/usr
make -C installwatch-0.6.3 install
# relocate /usr/local
cat checkinstall | sed s"/usr\/local/usr/g" > chkinstall
cp chkinstall /usr/sbin/checkinstall
cp makepak /usr/sbin
# relocate the config file
cat checkinstall | sed s"/usr\/lib/checkinstall/etc/g" >
chkinstallrc
mkdir -p /usr/lib/checkinstall
cp chkinstallrc /etc/checkinstallrc
# clean up
rm chkinstall
rm chkinstallrc
clean:
make -C installwatch-0.6.3 clean
Joel Hammer wrote:
> This is fairly straight forward:
>
> cat file | sed 's/\/usr\/local/\/usr/g'
--
.~. Swiftly. Silently. Invisibly. In Linux we trust.
/ v \ news://news.hkpcug.org
/( _ )\ http://www.linux-sxs.org
^ ^ 2.4.19 7:45pm up 28 days, 4:50, 1 user, load average: 1.13,
1.13, 1.09
More information about the Linux-users
mailing list