parent
a850b9edb9
commit
b54920f7e4
@ -47,9 +47,7 @@ if(USE_MANUAL)
|
|||||||
else()
|
else()
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT tool_hugehelp.c
|
OUTPUT tool_hugehelp.c
|
||||||
COMMAND ${CMAKE_COMMAND} -E echo "/* built-in manual is disabled, blank function */" > tool_hugehelp.c
|
COMMAND ${CMAKE_COMMAND} -E echo "#include \"tool_hugehelp.h\"" > tool_hugehelp.c
|
||||||
COMMAND ${CMAKE_COMMAND} -E echo "#include \"tool_hugehelp.h\"" >> tool_hugehelp.c
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E echo "void hugehelp(void) {}" >> tool_hugehelp.c
|
|
||||||
DEPENDS
|
DEPENDS
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/tool_hugehelp.h"
|
"${CMAKE_CURRENT_SOURCE_DIR}/tool_hugehelp.h"
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
|
|||||||
@ -127,9 +127,7 @@ endif
|
|||||||
else # USE_MANUAL
|
else # USE_MANUAL
|
||||||
# built-in manual has been disabled, make a blank file
|
# built-in manual has been disabled, make a blank file
|
||||||
$(HUGE):
|
$(HUGE):
|
||||||
$(HUGECMD)(echo "/* built-in manual is disabled, blank function */" > $(HUGE); \
|
echo '#include "tool_hugehelp.h"' >> $(HUGE)
|
||||||
echo '#include "tool_hugehelp.h"' >> $(HUGE); \
|
|
||||||
echo "void hugehelp(void) {}" >>$(HUGE) )
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ignore tool_hugehelp.c since it is generated source code and it plays
|
# ignore tool_hugehelp.c since it is generated source code and it plays
|
||||||
|
|||||||
@ -227,10 +227,6 @@ foot();
|
|||||||
|
|
||||||
sub foot {
|
sub foot {
|
||||||
print <<FOOT
|
print <<FOOT
|
||||||
#else /* !USE_MANUAL */
|
|
||||||
/* built-in manual is disabled, blank function */
|
|
||||||
#include "tool_hugehelp.h"
|
|
||||||
void hugehelp(void) {}
|
|
||||||
#endif /* USE_MANUAL */
|
#endif /* USE_MANUAL */
|
||||||
FOOT
|
FOOT
|
||||||
;
|
;
|
||||||
|
|||||||
@ -25,6 +25,11 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#include "tool_setup.h"
|
#include "tool_setup.h"
|
||||||
|
|
||||||
|
#ifdef USE_MANUAL
|
||||||
void hugehelp(void);
|
void hugehelp(void);
|
||||||
|
#else
|
||||||
|
/* do nothing if not there */
|
||||||
|
#define hugehelp()
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* HEADER_CURL_TOOL_HUGEHELP_H */
|
#endif /* HEADER_CURL_TOOL_HUGEHELP_H */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user