[Pkg-wmaker-commits] [wmtv] 42/48: debian/rules: Update to use dh with dh_autoreconf and enable all hardening flags.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Feb 1 20:13:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmtv.
commit 3a19c6fa953ef2d383efce599578d833271fcfda
Author: Doug Torrance <dtorrance at piedmont.edu>
Date: Mon Feb 1 07:12:48 2016 -0500
debian/rules: Update to use dh with dh_autoreconf and enable all hardening
flags.
---
debian/rules | 59 +++--------------------------------------------------------
1 file changed, 3 insertions(+), 56 deletions(-)
diff --git a/debian/rules b/debian/rules
index 7dcb7a4..63844c9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,59 +1,6 @@
#!/usr/bin/make -f
-#-*- makefile -*-
-# Made with the aid of dh_make, by Craig Small
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# Some lines taken from debmake, by Christoph Lameter.
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-# This is the debhelper compatability version to use.
-#export DH_COMPAT=3
-
-CFLAGS = -Wall -g
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-CFLAGS += -O0
-else
-CFLAGS += -O2
-endif
-
-build: build-stamp
-build-stamp:
- dh_testdir
- $(MAKE) CFLAGS="$(CFLAGS)"
- touch build-stamp
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp
- -$(MAKE) clean
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
- $(MAKE) install BINDIR=/usr/bin DESTDIR=`pwd`/debian/wmtv
-
-binary-indep: build install
-# We have nothing to do.
-
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installdocs
- dh_installman debian/wmtv.1
- dh_installchangelogs CHANGES
- dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+%:
+ dh $@ --with autoreconf
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmtv.git
More information about the Pkg-wmaker-commits
mailing list