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