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 37 38 39 40 41 42 43 44 45 46 47 48
|
#!/usr/bin/make -f
# This script uses debhelper by Joey Hess
# the diet script in this directory removes the large issueXX.txt/html files
export DH_VERBOSE=1
DEB=debian/tmp
LG=$(DEB)/usr/share/doc/lg
build: build-stamp
build-stamp:
dh_testdir
touch build-stamp
clean:
dh_testdir
dh_testroot
dh_clean
binary-indep: build
dh_testdir
dh_testroot
dh_clean
dh_installdirs usr/lib/lg usr/share/doc/lg
# move files into debian
install -m0755 debian/fixlinks $(DEB)/usr/lib/lg
cp -dR `ls |grep -v "^debian$$"` $(LG)
-rm $(LG)/build-stamp
-ln -s lg_frontpage.html $(LG)/index.html
dh_installchangelogs
dh_installdocs
dh_fixperms
dh_installdeb
dh_compress
#gzip -9 $(DEB)/usr/share/doc/lg-base/changelog.Debian
#gzip -9 debian/lg-subscription/usr/share/doc/lg-subscription/changelog.Debian
#gzip -9 debian/lg-latest-two/usr/share/doc/lg-latest-two/changelog.Debian
dh_shlibdeps
dh_gencontrol
dh_md5sums -X.html
dh_builddeb
binary-arch: build
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|