summaryrefslogtreecommitdiff
path: root/conf/Makefile
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-01-19 14:37:56 +0000
committerMartin Mares <mj@ucw.cz>2000-01-19 14:37:56 +0000
commitf50b9e48b93e3f69423a0e6e5fef273ba2022958 (patch)
tree8266a456f5cb079aa13be83c3279638c34d435f8 /conf/Makefile
parent4b87e256eba51a8711c24fbae501ac7975b4ecd3 (diff)
Generate a list of all commands and their help texts for the client to use.
Diffstat (limited to 'conf/Makefile')
-rw-r--r--conf/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/conf/Makefile b/conf/Makefile
index fdcd4c38..853cd832 100644
--- a/conf/Makefile
+++ b/conf/Makefile
@@ -20,7 +20,10 @@ cf-parse.y: $(conf-fragments) $(conf-src)/gen_parser.m4
keywords.h: $(conf-fragments) $(conf-src)/gen_keywords.m4
$(M4) -P $(conf-src)/gen_keywords.m4 $(conf-fragments) >keywords.h
+commands.h: $(conf-fragments) $(conf-src)/gen_commands.m4
+ $(M4) -P $(conf-src)/gen_commands.m4 $(conf-fragments) | sort >commands.h
+
cf-lex.c: cf-lex.l
$(FLEX) $(FLEX_DEBUG) -sB8 -ocf-lex.c -Pcf_ cf-lex.l
-depend: keywords.h cf-parse.tab.c cf-lex.c
+depend: keywords.h commands.h cf-parse.tab.c cf-lex.c