]> granicus.if.org Git - curl/commitdiff
src/Makefile.am: avoid explicit $<
authorDaniel Stenberg <daniel@haxx.se>
Wed, 19 Apr 2017 21:11:44 +0000 (23:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 19 Apr 2017 21:11:44 +0000 (23:11 +0200)
... since apparently "BSD make" doesn't support it.

Reported-by: Thomas Klausner
Fixes #1432

src/Makefile.am

index b59fb8786a7b1c026ce47c99b705e2a533753a06..f4e88a04bbcfae7e56b3e3ef92fd5688c8c41112 100644 (file)
@@ -105,21 +105,19 @@ $(MANPAGE):
 
 if HAVE_LIBZ
 # This generates the tool_hugehelp.c file in both uncompressed and
-# compressed formats. $(MANPAGE) must be the first dependency so it
-# can be referenced with $< which points to the correct location in
-# the VPATH.
+# compressed formats.
 $(HUGE): $(MANPAGE) $(README) $(MKHELP)
        echo '#include "tool_setup.h"' > $(HUGE)
        echo '#ifndef HAVE_LIBZ' >> $(HUGE)
-       $(NROFF) $< | $(PERL) $(MKHELP) $(README) >> $(HUGE)
+       $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
        echo '#else' >> $(HUGE)
-       $(NROFF) $< | $(PERL) $(MKHELP) -c $(README) >> $(HUGE)
+       $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) -c $(README) >> $(HUGE)
        echo '#endif /* HAVE_LIBZ */' >> $(HUGE)
 else # HAVE_LIBZ
 # This generates the tool_hugehelp.c file uncompressed only
 $(HUGE): $(MANPAGE) $(README) mkhelp.pl
        echo '#include "tool_setup.h"' > $(HUGE)
-       $(NROFF) $< | $(PERL) $(MKHELP) $(README) >> $(HUGE)
+       $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
 endif
 
 else # USE_MANUAL