Commit 277ec3f2 authored by Jari Aalto's avatar Jari Aalto

debian/rules: move to dh(1)

parent e54192e8
......@@ -4,55 +4,32 @@
# export DH_VERBOSE=1
PACKAGE = leafpad
include debian/debian-vars.mk
include /usr/share/dpatch/dpatch.make
MANSECT = 1
MANPAGE1 = debian/$(PACKAGE).$(MANSECT)
MANPAGE2 = debian/$(PACKAGE2).$(MANSECT)
MK_MAN = pod2man.mk
include debian/debian-vars.mk
man:
# target: man
$(MAKE) -C debian -f $(MK_MAN) PACKAGE=$(PACKAGE) \
MANSECT=$(MANSECT) makeman
.PHONY: man
configure: configure-stamp
configure-stamp:
# target: configure-stamp
dh_testdir
[ -f config.status ] || ./configure --prefix /usr
touch configure-stamp
build-stamp: configure-stamp
# target: build-stamp
dh_testdir
$(MAKE)
touch build-stamp
build: patch build-stamp man
clean: configure-stamp unpatch
clean:
# target: clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
dh_prep
dh_clean
[ ! -f Makefile ] || $(MAKE) clean distclean
rm -f debian/*.$(MANSECT)
rm -f debian/files
dh_prep
rm -f po/*.gmo
rm -f config.status config.log
rm -f intltool-update intltool-merge intltool-extract
# rm -f po/*.gmo
# rm -f config.status config.log
# rm -f intltool-update intltool-merge intltool-extract
install: build
install: build man
# target: install
dh_testdir
dh_testroot
......@@ -61,17 +38,12 @@ install: build
$(MAKE) install DESTDIR=$(PKGDIR)
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
# target: binary-arch
# target: binary-arch -- Build architecture-dependent files
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs README
dh_installdocs
# dh_installexamples
dh_installmenu
# dh_installlogrotate
......@@ -79,11 +51,11 @@ binary-arch: build install
# dh_installpam
# dh_installmime
# dh_installinit
dh_installcron
dh_installman debian/*.$(MANSECT)
dh_installinfo
# dh_installcron
# dh_installinfo
# dh_undocumented
dh_installchangelogs ChangeLog
dh_installman
dh_installchangelogs
dh_link
dh_strip
dh_compress
......@@ -96,5 +68,12 @@ binary-arch: build install
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
binary: binary-arch
%:
dh $@
.PHONY: clean install man
.PHONY: binary-indep binary-arch binary
# End of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment