diff --git a/src/Makefile.am b/src/Makefile.am index 21a799acd..4f4ed81f4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,7 +21,11 @@ EXTRA_DIST = mkhelp.pl Makefile.vc6 AUTOMAKE_OPTIONS = foreign no-dependencies +MANPAGE=$(top_srcdir)/docs/curl.1 +README=$(top_srcdir)/docs/README.curl +MKHELP=$(top_srcdir)/src/mkhelp.pl + # This generates the hugehelp.c file -hugehelp.c: $(top_srcdir)/README.curl $(top_srcdir)/curl.1 mkhelp.pl +hugehelp.c: $(README) $(MANPAGE) mkhelp.pl rm -f hugehelp.c - $(NROFF) -man $(top_srcdir)/curl.1 | $(PERL) $(top_srcdir)/src/mkhelp.pl $(top_srcdir)/README.curl > hugehelp.c + $(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(README) > hugehelp.c