2020-05-20 01:29:51 +02:00
|
|
|
--- Makefile.orig 2020-05-17 09:32:16 UTC
|
2015-09-20 22:19:18 +02:00
|
|
|
+++ Makefile
|
2017-05-07 23:26:34 +02:00
|
|
|
@@ -3,7 +3,7 @@ PO4A ?= po4a
|
|
|
|
POD2MAN ?= pod2man
|
|
|
|
|
2015-09-20 22:19:18 +02:00
|
|
|
# List of files of dh_* commands. Sorted for debhelper man page.
|
2017-05-07 23:26:34 +02:00
|
|
|
-COMMANDS=$(shell find . -maxdepth 1 -type f -perm /100 -name "dh_*" -printf "%f\n" | grep -v '~$$' | LC_ALL=C sort)
|
|
|
|
+COMMANDS=$(shell find . -maxdepth 1 -type f -perm +a+x -name "dh_*" -print | grep -v '~$$' | cut -c3- | LC_ALL=C sort)
|
2017-06-30 15:05:08 +02:00
|
|
|
MANPAGES=$(COMMANDS:=.1) dh.1
|
2015-09-20 22:19:18 +02:00
|
|
|
|
|
|
|
# Find deprecated commands by looking at their synopsis.
|
2020-05-20 01:29:51 +02:00
|
|
|
@@ -118,23 +118,22 @@ endif
|
2013-02-08 10:08:19 +01:00
|
|
|
done;
|
|
|
|
|
|
|
|
install:
|
2014-07-04 04:48:20 +02:00
|
|
|
- install -d $(DESTDIR)$(PREFIX)/bin \
|
|
|
|
- $(DESTDIR)$(PREFIX)/share/debhelper/autoscripts \
|
2013-02-08 10:08:19 +01:00
|
|
|
- $(DESTDIR)$(PERLLIBDIR)/Sequence \
|
2020-01-29 20:13:48 +01:00
|
|
|
- $(DESTDIR)$(PERLLIBDIR)/Buildsystem \
|
|
|
|
- $(DESTDIR)$(PERLLIBDIR)/DH
|
2014-07-04 04:48:20 +02:00
|
|
|
+ install -d \
|
|
|
|
+ $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Sequence \
|
2020-01-29 20:13:48 +01:00
|
|
|
+ $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Buildsystem \
|
|
|
|
+ $(DESTDIR)${SITE_PERL}/DH
|
2014-07-04 04:48:20 +02:00
|
|
|
install dh $(COMMANDS) $(DESTDIR)$(PREFIX)/bin
|
|
|
|
- install -m 0644 autoscripts/* $(DESTDIR)$(PREFIX)/share/debhelper/autoscripts
|
2017-09-11 15:15:52 +02:00
|
|
|
- install -m 0644 lib/Debian/Debhelper/*.pm $(DESTDIR)$(PERLLIBDIR)
|
2014-07-04 04:48:20 +02:00
|
|
|
+ install -m 0644 autoscripts/* $(DESTDIR)$(PREFIX)/bin
|
2017-09-11 15:15:52 +02:00
|
|
|
+ install -m 0644 lib/Debian/Debhelper/*.pm $(DESTDIR)${SITE_PERL}/Debian/Debhelper
|
2014-07-04 04:48:20 +02:00
|
|
|
[ "$(PREFIX)" = /usr ] || \
|
|
|
|
- sed -i '/$$prefix=/s@/usr@$(PREFIX)@g' $(DESTDIR)$(PERLLIBDIR)/Dh_Lib.pm
|
2020-05-20 01:29:51 +02:00
|
|
|
+ sed -i '' '/$$prefix=/s@/usr@$(PREFIX)@g' $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Dh_Lib.pm
|
|
|
|
if [ "$(VERSION)" ]; then \
|
|
|
|
MV=$$(echo "$(VERSION)" | $(PERL) -ne 'print $$1 if /^(\d+)[~.]/;') ; \
|
|
|
|
sed -i "/constant HIGHEST_STABLE_COMPAT_LEVEL =>/s@=>.*;@=> $${MV};@g" $(DESTDIR)$(PERLLIBDIR)/Dh_Lib.pm ; \
|
|
|
|
fi
|
2017-09-11 15:15:52 +02:00
|
|
|
- install -m 0644 lib/Debian/Debhelper/Sequence/*.pm $(DESTDIR)$(PERLLIBDIR)/Sequence
|
|
|
|
- install -m 0644 lib/Debian/Debhelper/Buildsystem/*.pm $(DESTDIR)$(PERLLIBDIR)/Buildsystem
|
2020-01-29 20:13:48 +01:00
|
|
|
- install -m 0644 lib/Debian/Debhelper/DH/*.pm $(DESTDIR)$(PERLLIBDIR)/DH
|
2017-09-11 15:15:52 +02:00
|
|
|
+ install -m 0644 lib/Debian/Debhelper/Sequence/*.pm $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Sequence
|
|
|
|
+ install -m 0644 lib/Debian/Debhelper/Buildsystem/*.pm $(DESTDIR)${SITE_PERL}/Debian/Debhelper/Buildsystem
|
2020-01-29 20:13:48 +01:00
|
|
|
+ install -m 0644 lib/Debian/Debhelper/DH/*.pm $(DESTDIR)${SITE_PERL}/DH
|
2013-02-08 10:08:19 +01:00
|
|
|
|
|
|
|
test: version
|
2017-09-11 15:15:52 +02:00
|
|
|
MAKEFLAGS= HARNESS_OPTIONS=j$(TEST_JOBS) ./run perl -MTest::Harness -e 'runtests grep { ! /CVS/ && ! /\.svn/ && -f && -x && m/\.t$$/ } @ARGV' t/* t/*/*
|