[PPL-devel] [GIT] ppl/ppl(master): Avoid a non-portable GNU Make idiom (using $< in a non-suffix rule context).
Roberto Bagnara
bagnara at cs.unipr.it
Tue Jul 17 16:50:22 CEST 2012
Module: ppl/ppl
Branch: master
Commit: 64802610e73c3db4f520cedaebf73eadfc0a4611
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=64802610e73c3db4f520cedaebf73eadfc0a4611
Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date: Tue Jul 17 16:49:39 2012 +0200
Avoid a non-portable GNU Make idiom (using $< in a non-suffix rule context).
---
Makefile.am | 4 ++--
src/Makefile.am | 16 ++++++++--------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 1b80b3d..3cb89d5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -36,10 +36,10 @@ dist_noinst_HEADERS = \
instchk.hh
ppl-config.h: config.h $(srcdir)/ppl-config.sed
- $(SED) -f $(srcdir)/ppl-config.sed $< >$@
+ $(SED) -f $(srcdir)/ppl-config.sed config.h >$@
ppl-config.h.in: config.h.in $(srcdir)/ppl-config.sed
- $(SED) -f $(srcdir)/ppl-config.sed $< >$@
+ $(SED) -f $(srcdir)/ppl-config.sed config.h.in >$@
DISTCHECK_CONFIGURE_FLAGS = \
--enable-shared
diff --git a/src/Makefile.am b/src/Makefile.am
index 8a73add..6fb2c3f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -628,28 +628,28 @@ ppl.hh.sed: Makefile
@echo "}" >>$@
ppl.hh: ppl.hh.dist ppl.hh.sed
- $(SED) -f ppl.hh.sed $< >$@
+ $(SED) -f ppl.hh.sed ppl.hh.dist >$@
rm -f ppl.hh.sed
BUGS.hh: BUGS.hh.dist
- cp -f $< $@
+ cp -f BUGS.hh.dist $@
BUGS.cc: BUGS.cc.dist
- cp -f $< $@
+ cp -f BUGS.cc.dist $@
COPYING.hh: COPYING.hh.dist
- cp -f $< $@
+ cp -f COPYING.hh.dist $@
COPYING.cc: COPYING.cc.dist
- cp -f $< $@
+ cp -f COPYING.cc.dist $@
CREDITS.hh: CREDITS.hh.dist
- cp -f $< $@
+ cp -f CREDITS.hh.dist $@
CREDITS.cc: CREDITS.cc.dist
- cp -f $< $@
+ cp -f CREDITS.cc.dist $@
endif !HAVE_PERL
if USE_PRECOMPILED_HEADERS
ppl.hh.gch: ppl.hh
- $(CXXCOMPILE) -xc++-header -o $@ $<
+ $(CXXCOMPILE) -xc++-header -o $@ ppl.hh
PRECOMPILED = ppl.hh.gch
More information about the PPL-devel
mailing list