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
|
#!/usr/bin/make -f
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
configure:
dh_testdir
autoconf
cp /usr/share/misc/config.guess /usr/share/misc/config.sub .
config.status: configure
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man \
--localstatedir=/var --with-site-perl=/usr/share/perl5
build-arch: build
build-indep: build
build: config.status
dh_testdir
$(MAKE)
touch build-stamp
clean:
dh_testdir
[ ! -f Makefile ] || $(MAKE) distclean
dh_clean
rm -f build-stamp config.guess config.sub configure
rm -Rf debian/epylog
install: build
dh_testdir
$(MAKE) install DOCDIRS="doc/*" pkgdocdir="/usr/share/doc/epylog" DESTDIR="$(CURDIR)/debian/epylog"
rm $(CURDIR)/debian/epylog/usr/share/doc/epylog/INSTALL \
$(CURDIR)/debian/epylog/usr/share/doc/epylog/LICENSE \
$(CURDIR)/debian/epylog/usr/share/doc/epylog/ChangeLog
find $(CURDIR)/debian/epylog -name *.pyc | xargs rm -f
chmod 755 $(CURDIR)/debian/epylog/usr/share/epylog/modules/*.py
mv $(CURDIR)/debian/epylog/etc/cron.daily/epylog.cron $(CURDIR)/debian/epylog/etc/cron.daily/epylog
binary-indep: build install
dh_testdir
dh_testroot
dh_installman
dh_installdocs -X.svn
dh_installchangelogs ChangeLog
dh_compress
dh_python2
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch:
binary: binary-indep binary-arch
.PHONY: build binary-indep binary install
|