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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
#!/usr/bin/make -f
#-*- makefile -*-
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=1
product=Squishdot
pkg=squishdot
INSTPATH=lib/zope/lib/python/Products/${product}
INSTDIR=usr/${INSTPATH}
DOCPATH=share/doc/${pkg}
DOCDIR=usr/${DOCPATH}
build: build-stamp
build-stamp:
dh_testdir
touch build-stamp
clean:
dh_testdir
dh_testroot
# remove stamps
rm -f build-stamp install-stamp
# cleanup and remove compiled python scripts
-$(MAKE) clean
-rm -f `find . -name "*.pyc"`
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
#tar -cf - --exclude ./debian --exclude ./doc . | (cd debian/tmp/${INSTDIR}/ && tar -xf -)
cp -av Squishdot/* debian/tmp/${INSTDIR}
dos2unix `find debian/tmp/${INSTDIR} -name "*.py"`
touch install-stamp
# We have nothing to do by default.
binary-arch:
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs
cp -av debian/html-doc/* debian/tmp/${DOCDIR}/html
cat debian/tmp/$(INSTDIR)/License.txt >> debian/tmp/$(DOCDIR)/copyright
rm -f debian/tmp/$(INSTDIR)/License.txt
ln -s ../../../../../../${DOCPATH}/copyright debian/tmp/$(INSTDIR)/License.txt
gzip -9 -c debian/tmp/$(INSTDIR)/Changes.txt > debian/tmp/$(DOCDIR)/changelog.gz
mv debian/tmp/$(INSTDIR)/stripogram/license.txt debian/tmp/$(DOCDIR)/copyright.stripogram
ln -s ../../../../../../../$(DOCPATH)/copyright.stripogram debian/tmp/$(INSTDIR)/stripogram/license.txt
ln -s ../../../${INSTPATH}/Updaters debian/tmp/$(DOCDIR)/Updaters
dh_installexamples
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
chown www-data.www-data debian/tmp/$(INSTDIR)
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|