audiod: use the new help text array of gengetopt-2.17
[paraslash.git] / Makefile.in
index 0c32146..d8932e4 100644 (file)
@@ -35,6 +35,7 @@ DEBUG_CPPFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W
 # CPPFLAGS += -Wfloat-equal
 # CPPFLAGS += -Wmissing-format-attribute
 # CPPFLAGS += -Wunused-macros
+# CPPFLAGS += -Wwrite-strings
 
 # invalid option for gcc-3.3.5
 # CPPFLAGS += -Wextra
@@ -122,17 +123,16 @@ grab_client.cmdline.h grab_client.cmdline.c: grab_client.ggo
                --arg-struct-name=grab_client_args_info \
                --file-name=$(subst .ggo,,$<).cmdline \
                --func-name $(subst .ggo,,$<)_cmdline_parser < $<
-       grep -v 'fprintf\ *(stderr' $(subst .ggo,,$<).cmdline.c > $(subst .ggo,,$<).tmp
-       mv $(subst .ggo,,$<).tmp $(subst .ggo,,$<).cmdline.c
-       ggo_help GRAB_HELP_TXT < grab_client.ggo >> $(subst .ggo,,$<).cmdline.h
 
 %_recv.cmdline.h %_recv.cmdline.c: %_recv.ggo
        gengetopt $(module_ggo_opts) \
+               --arg-struct-name=$(subst .ggo,,$<)_args_info \
                --file-name=$(subst .ggo,,$<).cmdline \
                --func-name $(subst .ggo,,$<)_cmdline_parser < $<
 
 %_filter.cmdline.h %_filter.cmdline.c: %_filter.ggo
        gengetopt $(module_ggo_opts) \
+               --arg-struct-name=$(subst .ggo,,$<)_args_info \
                --file-name=$(subst .ggo,,$<).cmdline \
                --func-name $(subst _filter.ggo,,$<)_cmdline_parser < $<