Quellcode durchsuchen

build: Use single suffix rules instead of non-portable %-pattern rules

Guillem Jover vor 11 Jahren
Ursprung
Commit
4436eea426
3 geänderte Dateien mit 8 neuen und 3 gelöschten Zeilen
  1. 1 0
      debian/changelog
  2. 3 1
      dselect/methods/Makefile.am
  3. 4 2
      scripts/Makefile.am

+ 1 - 0
debian/changelog

@@ -108,6 +108,7 @@ dpkg (1.18.0) UNRELEASED; urgency=low
     - Check that HAVE_DECL_SYS_SIGLIST is 0 instead of undefined, to fix a
       build failure on uclibc based systems. Closes: #777044
       Based on a patch by Alex Potapenko <opotapenko@gmail.com>.
+    - Use single suffix rules instead of non-portable %-pattern rules.
   * Packaging:
     - Remove old trigger related Breaks and Conflicts from dpkg.
     - Only use stackprotectorstrong when building dpkg with gcc >= 4.9.

+ 3 - 1
dselect/methods/Makefile.am

@@ -51,7 +51,9 @@ CLEANFILES = \
 do_perl_subst = $(AM_V_GEN) \
 	sed -e "s:^\#![[:space:]]*/usr/bin/perl:\#!$(PERL):"
 
-%: %.pl Makefile
+SUFFIXES = .pl
+
+.pl: Makefile
 	@test -d `dirname $@` || $(MKDIR_P) `dirname $@`
 	$(do_perl_subst) <$< >$@
 	$(AM_V_at) chmod +x $@

+ 4 - 2
scripts/Makefile.am

@@ -134,12 +134,14 @@ do_perl_subst = $(AM_V_GEN) \
 do_shell_subst = $(AM_V_GEN) \
 		 sed -e "s:^version[[:space:]]*=[[:space:]]*['\"][^'\"]*[\"']:version=\"$(PACKAGE_VERSION)\":"
 
-%: %.pl Makefile
+SUFFIXES = .pl .sh
+
+.pl: Makefile
 	@test -d `dirname $@` || $(MKDIR_P) `dirname $@`
 	$(do_perl_subst) <$< >$@
 	$(AM_V_at) chmod +x $@
 
-%: %.sh Makefile
+.sh: Makefile
 	@test -d `dirname $@` || $(MKDIR_P) `dirname $@`
 	$(do_shell_subst) <$< >$@
 	$(AM_V_at) chmod +x $@