[Pkg-wmaker-commits] [wmifs] 45/118: debian/rules: Use dh.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 27 02:37:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmifs.
commit bb4bed8d18f7beafe8e54257f19945860ce49d0a
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Thu Oct 23 15:06:00 2014 -0500
debian/rules: Use dh.
---
debian/rules | 72 ++++--------------------------------------------------------
1 file changed, 4 insertions(+), 68 deletions(-)
diff --git a/debian/rules b/debian/rules
index 11eb6fe..5bc487a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,72 +1,10 @@
#!/usr/bin/make -f
-testdir = test -f wmifs/wmifs.c && test -f debian/rules
-testroot = test x`whoami` = xroot
+%:
+ dh $@ --sourcedirectory=wmifs
-CPPFLAGS = -Wall $(shell dpkg-buildflags --get CPPFLAGS)
-export CPPFLAGS
-
-CFLAGS = -Wall -g $(shell dpkg-buildflags --get CFLAGS)
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-export CFLAGS
-
-LDFLAGS = -Wall $(shell dpkg-buildflags --get LDFLAGS)
-export LDFLAGS
-
-clean:
- $(testdir)
- rm -f build build-arch build-indep debian/files debian/rejected debian/substvars
- $(MAKE) -C wmifs clean
- -cat `ls -r debian/patches/*.diff` /dev/null | patch -RENtp1 -r debian/rejected --no-backup-if-mismatch
- rm -rf debian/tmp
-
-build: build-arch
-
-build-indep:
-
-build-arch:
- $(testdir)
- -cat debian/patches/*.diff | patch -Ntp1 -r debian/rejected --no-backup-if-mismatch
- $(MAKE) -C wmifs
- touch $@
-
-binary: binary-arch
-
-binary-indep:
-
-binary-arch: build
- $(testdir)
- $(testroot)
- rm -rf debian/tmp
-
- $(MAKE) -C wmifs install prefix=/usr DESTDIR=$(CURDIR)/debian/tmp
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- strip -R .comment -R .note debian/tmp/usr/bin/wmifs
-endif
- install -D -p -m 0644 debian/wmifs.1 debian/tmp/usr/share/man/man1/wmifs.1
- install -D -p -m 0644 debian/menu debian/tmp/usr/share/menu/wmifs
- install -D -p -m 0644 debian/changelog debian/tmp/usr/share/doc/wmifs/changelog.Debian
- install -D -p -m 0644 CHANGES debian/tmp/usr/share/doc/wmifs/changelog
- install -p -m 0644 BUGS HINTS README TODO debian/copyright debian/tmp/usr/share/doc/wmifs
- install -d -p -m 0755 debian/tmp/DEBIAN
- install -p -m 0644 debian/control debian/tmp/DEBIAN
- install -p -m 0755 debian/postinst debian/postrm debian/tmp/DEBIAN
- find debian/tmp/usr/share/man -type f ! -name '*.gz' -print0 | xargs -0 gzip -9n
- find debian/tmp/usr/share/doc -type f \( -size +8 -o -name 'changelog*' \) \
- ! -name copyright ! -name '*.htm*' ! -name '*.gz' -print0 | xargs -0 gzip -9n
- cd debian/tmp && find etc -type f | sed 's/^/\//' > DEBIAN/conffiles
- cd debian/tmp && find usr -type f -print0 | xargs -0 md5sum > DEBIAN/md5sums
- chmod 0644 debian/tmp/DEBIAN/md5sums
-
- dpkg-shlibdeps debian/tmp/usr/bin/wmifs
- dpkg-gencontrol -isp -pwmifs
- chown -R root:root debian/tmp
- chmod -R u+w,go=u-w debian/tmp
- dpkg --build debian/tmp ..
+override_dh_auto_install:
+ dh_auto_install -- prefix=/usr
get-orig-source:
uscan --verbose --force-download --no-symlink
@@ -74,5 +12,3 @@ get-orig-source:
rename -fv "s/wmifs-(.+)\.download/wmifs_\1\.orig\.tar\.gz/" \
../wmifs-*.download; \
fi
-
-.PHONY: clean binary-indep binary-arch binary
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmifs.git
More information about the Pkg-wmaker-commits
mailing list