[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/11] build: prefer pattern rules over suffix rules
From: |
Stefano Lattarini |
Subject: |
[PATCH 03/11] build: prefer pattern rules over suffix rules |
Date: |
Thu, 30 Aug 2012 18:53:15 +0200 |
That is acceptable, because the GNU parted build system already
requires GNU make anyway: the $(subst ...) built-in is used in the
common recipe for the 'ss-1024', 'ss-2048' and 'ss-4096' targets
in Makefile.am.
* include/parted/Makefile.am (.in.h.h): Rename ...
(%.h: %.in.h): ... as this pattern rule.
(SUFFIXES): Delete, no more needed.
Copyright-paperwork-exempt: yes
---
include/parted/Makefile.am | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/parted/Makefile.am b/include/parted/Makefile.am
index 19236f0..6f808c6 100644
--- a/include/parted/Makefile.am
+++ b/include/parted/Makefile.am
@@ -44,8 +44,7 @@ subst_pure_attr = \
$(BUILT_SOURCES): Makefile.am
-SUFFIXES = .in.h .h
-.in.h.h:
+%.h: %.in.h
$(AM_V_GEN)rm -f $@ address@hidden
$(AM_V_at)perl -p \
-e '$(subst_const_attr);' \
- [PATCH 00/11] various minor cleanup to the build system, Stefano Lattarini, 2012/08/30
- [PATCH 01/11] build: prefer $(AM_CPPFLAGS) over $(INCLUDES), Stefano Lattarini, 2012/08/30
- [PATCH 02/11] build: don't list files with unknown suffix in _SOURCES, Stefano Lattarini, 2012/08/30
- [PATCH 03/11] build: prefer pattern rules over suffix rules,
Stefano Lattarini <=
- [PATCH 05/11] tests: prefer AM_TESTS_ENVIRONMENT over TESTS_ENVIRONMENT, Stefano Lattarini, 2012/08/30
- [PATCH 07/11] build: require Automake >= 1.11.6, Stefano Lattarini, 2012/08/30
- [PATCH 06/11] tests: remove unused AM_TESTS_ENVIRONMENT entries, Stefano Lattarini, 2012/08/30
- [PATCH 09/11] maint: tighten per version requirement, Stefano Lattarini, 2012/08/30
- [PATCH 04/11] build: enable subdir-objects Automake option globally, Stefano Lattarini, 2012/08/30
- [PATCH 08/11] maint: make Autoconf version requirement consistent, Stefano Lattarini, 2012/08/30
- [PATCH 11/11] gitignore: reorder as forced by ./bootstrap, Stefano Lattarini, 2012/08/30
- [PATCH 10/11] bootstrap: update to latest, from gnulib, Stefano Lattarini, 2012/08/30
- Re: [PATCH 00/11] various minor cleanup to the build system, Jim Meyering, 2012/08/30