Using BSD make, build process never finished.
authorYoshiyuki Asaba <y-asaba at pgfoundry.org>
Sat, 6 May 2006 12:48:05 +0000 (12:48 +0000)
committerYoshiyuki Asaba <y-asaba at pgfoundry.org>
Sat, 6 May 2006 12:48:05 +0000 (12:48 +0000)
BSD make can only use "$<" in an implicit rule. But '$<' is used in
the explicit rule.

pgpool.8: pgpool.8.in
        sed 's,@sysconfdir\@,$(sysconfdir),g' $< >$@

BSD make transforms '$<' to empty string in an explicit rule. So, it
uses '$?' instead of '$<'.

Makefile.am
Makefile.in

index fffbb43f262a195f4e6473a5240af3bebff53ff9..df7570430dce7ab5c6d635d671c1e78a5becfcb9 100644 (file)
@@ -16,7 +16,7 @@ AM_CPPFLAGS = -Wall -Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE
 man_MANS = pgpool.8
 
 pgpool.8: pgpool.8.in
-       sed 's,@sysconfdir\@,$(sysconfdir),g' $< >$@
+       sed 's,@sysconfdir\@,$(sysconfdir),g' $? >$@
 
 CLEANFILES = pgpool.8
 EXTRA_DIST = pgpool.8.in
index c12b8495f2762539466c54bfaf857820c01f0877..1cc4051eb93ea17e18d6a886892d6bc93e88f50e 100644 (file)
@@ -647,7 +647,7 @@ uninstall-man: uninstall-man8
 
 
 pgpool.8: pgpool.8.in
-       sed 's,@sysconfdir\@,$(sysconfdir),g' $< >$@
+       sed 's,@sysconfdir\@,$(sysconfdir),g' $? >$@
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT: