Commit ba32a386 authored by Jari Aalto's avatar Jari Aalto

debian/rules: move to dh(1)

parent 9540f32d
......@@ -4,56 +4,23 @@
# export DH_VERBOSE=1
PACKAGE = leafpad
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
$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman
clean:
# target: clean
dh_testdir
dh_testroot
dh_prep
dh_clean
[ ! -f Makefile ] || $(MAKE) clean distclean
override_dh_auto_test:
# Do not run tests. It would consider Quilt dir .pc as
# part of translation POTFILES.
# rm -f po/*.gmo
# rm -f config.status config.log
# rm -f intltool-update intltool-merge intltool-extract
install: build man
# target: install
binary: build install man
# target: binary (binary-arch) -- Build architecture-dependent files
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install DESTDIR=$(PKGDIR)
binary-arch: build install
# target: binary-arch -- Build architecture-dependent files
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
# dh_installexamples
dh_installexamples
dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
# dh_installcron
# dh_installinfo
# dh_undocumented
dh_installman
dh_installchangelogs
dh_link
......@@ -62,18 +29,14 @@ binary-arch: build install
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-arch
%:
dh $@
.PHONY: clean install man
.PHONY: binary-indep binary-arch binary
.PHONY: man 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