[Pkg-wmaker-commits] [wmfrog] 98/145: Simplify debian/rules by using --sourcedirectory=Src
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sun Aug 23 05:46:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmfrog.
commit 8d3b5ea6402d188fa42336b297ffe727c90b52bb
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Mon Jul 21 23:43:34 2014 -0500
Simplify debian/rules by using --sourcedirectory=Src
---
debian/rules | 19 +++----------------
1 file changed, 3 insertions(+), 16 deletions(-)
diff --git a/debian/rules b/debian/rules
index 0339aad..a13ef19 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,21 +1,8 @@
#!/usr/bin/make -f
-MAKEOPT = -C Src
-
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
-export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+%:
+ dh $@ --sourcedirectory=Src
override_dh_auto_build:
- # CFLAGS is the only variable that we can utilize to pass flags.
- $(MAKE) $(MAKEOPT) CFLAGS="$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)"
-
-override_dh_auto_clean:
- [ ! Src/Makefile ] || $(MAKE) $(MAKEOPT) clean
-
-override_dh_auto_install:
- $(MAKE) $(MAKEOPT) install DESTDIR=$(CURDIR)/debian/wmfrog
-
-%:
- dh $@
+ dh_auto_build --sourcedirectory=Src -- CFLAGS="$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmfrog.git
More information about the Pkg-wmaker-commits
mailing list