will be properly built with configure --disable-manual even if the source
file is already present
else # HAVE_LIBZ
# This generates the hugehelp.c file uncompressed only
$(HUGE): $(README) $(MANPAGE) mkhelp.pl
- $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) > $(HUGE)
+ echo '#ifdef HAVE_CONFIG_H' > $(HUGE)
+ echo '#include "config.h"' >> $(HUGE)
+ echo '#endif' >> $(HUGE)
+ $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
endif
else # USE_MANUAL
* NEVER EVER edit this manually, fix the mkhelp.pl script instead!
* Generation time: $now
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#ifdef USE_MANUAL
#include "hugehelp.h"
#include <stdio.h>
HEAD
}
EOF
;
+foot();
exit;
}
else {
}
-print ", stdout) ;\n}\n"
-
+print ", stdout) ;\n}\n";
+
+foot();
+
+sub foot {
+ print <<FOOT
+#endif /* USE_MANUAL */
+FOOT
+ ;
+}