1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
#! /usr/bin/make -f
build: stamp-configure
make
texi2html -split_node -menu stow.texi
stamp-configure:
./configure --prefix=/usr
touch stamp-configure
clean:
test ! -f stamp-configure || (rm -f stamp-configure; make distclean)
rm -f stow_*.html
force-clean: stamp-configure clean
install-stow:
install -d $(ROOT)/usr
make install prefix=$(ROOT)/usr
gzip -9n $(ROOT)/usr/info/* $(ROOT)/usr/man/man?/*
install -d $(ROOT)/usr/doc/stow
install -m 644 debian/changelog $(ROOT)/usr/doc/stow/changelog.Debian
install -m 644 ChangeLog $(ROOT)/usr/doc/stow/changelog
gzip -9n $(ROOT)/usr/doc/*/*
install -m 644 AUTHORS NEWS README THANKS TODO $(ROOT)/usr/doc/stow
install -m 644 debian/copyright $(ROOT)/usr/doc/stow
# install -m 644 debian/dwww-index $(ROOT)/usr/doc/stow/.dwww-index
install -d $(ROOT)/usr/lib/menu
install -m 644 debian/menu $(ROOT)/usr/lib/menu/stow
install -d $(ROOT)/usr/doc/stow/html
install -m 644 stow_*.html $(ROOT)/usr/doc/stow/html
# This doesn't work yet; need a way to munge hrefs
# gzip -9n $(ROOT)/usr/doc/*/html/*
install -m 755 debian/postinst debian/prerm debian/postrm $(CONTROL)
finalise-stow:
|