1 # Copyright (C) 1999-2008 Free Software Foundation, Inc.
3 # This file is free software; as a special exception the author gives
4 # unlimited permission to copy and/or distribute it, with or without
5 # modifications, as long as this notice is preserved.
7 # This program is distributed in the hope that it will be useful, but
8 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 # if gengen is not installed we simply ignore the changes
17 # echo "Not regenerating $@ since gengen is not installed"
18 # better not to use touch, otherwise we will create an empty file in
26 name="`echo $* | sed 's/^.*\///g'`"; \
28 $(GENERATE) -i $< -F $*.h -f $$name --separate-files --expand-tabs --output-dir=$(srcdir) --force
31 INCLUDES = -I@top_srcdir@/src
33 noinst_LTLIBRARIES = libgen.la
35 libgen_la_SOURCES = $(BUILT_SOURCES)
37 BUILT_SOURCES = header.h header.cc c_source.h c_source.cc \
38 handle_help.h handle_version.h handle_help.cc handle_version.cc \
39 generic_option.h required_option.h dependant_option.h \
40 generic_option.cc required_option.cc dependant_option.cc \
41 group_counter.h group_option.h \
42 group_counter.cc group_option.cc \
43 print_help_string.h print_help_string.cc \
44 multiple_opt_list.cc multiple_opt_list.h \
45 multiple_fill_array.cc multiple_fill_array.h \
46 copyright.cc copyright.h \
47 free_string.cc free_string.h \
48 free_multiple.cc free_multiple.h \
49 reset_group.cc reset_group.h \
50 exit_failure.cc exit_failure.h \
51 update_given.cc update_given.h \
52 option_arg.cc option_arg.h \
53 given_field.cc given_field.h \
54 clear_given.cc clear_given.h \
55 clear_arg.cc clear_arg.h \
56 free_list.cc free_list.h \
57 file_save.cc file_save.h \
58 file_save_multiple.cc file_save_multiple.h \
59 init_args_info.cc init_args_info.h \
60 custom_getopt_gen.cc custom_getopt_gen.h \
61 check_modes.cc check_modes.h \
62 enum_decl.cc enum_decl.h
64 EXTRA_DIST = header.h_skel c_source.h_skel handle_help.h_skel \
65 handle_version.h_skel generic_option.h_skel \
66 required_option.h_skel dependant_option.h_skel \
67 group_counter.h_skel group_option.h_skel \
68 print_help_string.h_skel \
69 multiple_opt_list.h_skel \
70 multiple_fill_array.h_skel \
71 copyright.h_skel free_string.h_skel \
72 free_multiple.h_skel \
82 file_save_multiple.h_skel \
83 init_args_info.h_skel \
84 custom_getopt_gen.h_skel \
90 cd @srcdir@ && rm -f $(BUILT_SOURCES)