[Pkg-wmaker-commits] [wmshutdown] 10/173: debian/rules: use *.mk files
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Tue Aug 25 02:46:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmshutdown.
commit 21e3a0c13c3054fbf9b61dada152bef4d3d85125
Author: Jari Aalto <jari.aalto at cante.net>
Date: Sat Dec 5 14:27:31 2009 +0200
debian/rules: use *.mk files
---
debian/rules | 82 +++++++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 56 insertions(+), 26 deletions(-)
diff --git a/debian/rules b/debian/rules
index 7e782a5..1d372d1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,66 +1,96 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+# export DH_VERBOSE=1
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -g
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- INSTALL_PROGRAM += -s
-endif
+PACKAGE = wmshutdown
+PACKAGE2 = wmshutdown-run
-build: build-stamp
-build-stamp:
- dh_testdir
+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
+
+man:
+ # Commands to build manual pages
+ $(MAKE) -C debian -f $(MK_MAN) PACKAGE=$(PACKAGE) \
+ MANSECT=$(MANSECT) makeman
- # Add here commands to compile the package.
- $(MAKE) dock
- $(MAKE) shutdown
+ $(MAKE) -C debian -f $(MK_MAN) PACKAGE=$(PACKAGE2) \
+ MANSECT=$(MANSECT) makeman
+.PHONY: man
+
+build-stamp: man
+ # target: build-stamp
+ dh_testdir
+ $(MAKE)
touch build-stamp
-clean:
+build: patch build-stamp man
+
+clean: unpatch
+ # target: clean
dh_testdir
dh_testroot
+ rm -f build-stamp configure-stamp
- # Add here commands to clean up after the build process.
- $(MAKE) clean
+ rm -f wmshutdown-run wmshutdown
+ [ ! -f Makefile ] || $(MAKE) clean
- dh_clean build-stamp
+ rm -f debian/*.$(MANSECT)
+ dh_prep
install: build
+ # target: install
dh_testdir
dh_testroot
- dh_clean -k
+ dh_prep
dh_installdirs
- # Add here commands to install the package into debian/wmshutdown.
- $(MAKE) install DESTDIR=$(CURDIR)/debian/wmshutdown
+ # Commands to install the package
+ $(MAKE) dock shutdown
+ $(MAKE) install DESTDIR=$(PKGDIR)
+ chmod ug+s $(BINDIR)/$(PACKAGE)
# Build architecture-independent files here.
binary-indep: build install
-# We have nothing to do by default.
+ # We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
+ # target: binary-arch
dh_testdir
dh_testroot
- dh_installdocs
+# dh_installdebconf
+ dh_installdocs README
+# dh_installexamples
dh_installmenu
- dh_installman debian/wmShutdown.1 debian/Shutdown.1
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+ dh_installcron
+ dh_installman debian/*.$(MANSECT)
+ dh_installinfo
+# dh_undocumented
dh_installchangelogs ChangeLog
+ dh_link
dh_strip
dh_compress
dh_fixperms
+# dh_makeshlibs
dh_installdeb
+# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+.PHONY: build clean binary-indep binary-arch binary install configure
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmshutdown.git
More information about the Pkg-wmaker-commits
mailing list