mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
make the generated hugehelp.c file use the USE_MANUAL define so that it
will be properly built with configure --disable-manual even if the source file is already present
This commit is contained in:
parent
b9432d1296
commit
68a3cbe384
@ -74,7 +74,10 @@ $(HUGE): $(README) $(MANPAGE) mkhelp.pl
|
|||||||
else # HAVE_LIBZ
|
else # HAVE_LIBZ
|
||||||
# This generates the hugehelp.c file uncompressed only
|
# This generates the hugehelp.c file uncompressed only
|
||||||
$(HUGE): $(README) $(MANPAGE) mkhelp.pl
|
$(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
|
endif
|
||||||
|
|
||||||
else # USE_MANUAL
|
else # USE_MANUAL
|
||||||
|
@ -112,6 +112,10 @@ print <<HEAD
|
|||||||
* NEVER EVER edit this manually, fix the mkhelp.pl script instead!
|
* NEVER EVER edit this manually, fix the mkhelp.pl script instead!
|
||||||
* Generation time: $now
|
* Generation time: $now
|
||||||
*/
|
*/
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
#ifdef USE_MANUAL
|
||||||
#include "hugehelp.h"
|
#include "hugehelp.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
HEAD
|
HEAD
|
||||||
@ -179,6 +183,7 @@ void hugehelp(void)
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
;
|
;
|
||||||
|
foot();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -211,5 +216,13 @@ for(@out) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print ", stdout) ;\n}\n"
|
print ", stdout) ;\n}\n";
|
||||||
|
|
||||||
|
foot();
|
||||||
|
|
||||||
|
sub foot {
|
||||||
|
print <<FOOT
|
||||||
|
#endif /* USE_MANUAL */
|
||||||
|
FOOT
|
||||||
|
;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user