]> Creatis software - clitk.git/blob - cmake/gengetopt/skels/Makefile.am
Added FindGengetopt.cmake which compiles gengetopt if not installed.
[clitk.git] / cmake / gengetopt / skels / Makefile.am
1 # Copyright (C) 1999-2008 Free Software Foundation, Inc.
2 #
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.
6 #
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.
10
11 # if gengen is not installed we simply ignore the changes
12
13 SUFFIXES = .h_skel
14
15 if NO_GENGEN
16 #.h_skel.cc:
17 #       echo "Not regenerating $@ since gengen is not installed"
18 # better not to use touch, otherwise we will create an empty file in
19 # the build directory
20 #       touch $@
21
22 else
23 GENERATE = $(GENGEN)
24
25 .h_skel.cc:
26         name="`echo $* | sed 's/^.*\///g'`"; \
27         echo "$$name"; \
28         $(GENERATE) -i $< -F $*.h -f $$name --separate-files --expand-tabs --output-dir=$(srcdir) --force
29 endif
30
31 INCLUDES = -I@top_srcdir@/src
32
33 noinst_LTLIBRARIES = libgen.la
34
35 libgen_la_SOURCES = $(BUILT_SOURCES)
36
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
63
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 \
73 reset_group.h_skel \
74 exit_failure.h_skel \
75 update_given.h_skel \
76 option_arg.h_skel \
77 given_field.h_skel \
78 clear_given.h_skel \
79 clear_arg.h_skel \
80 free_list.h_skel \
81 file_save.h_skel \
82 file_save_multiple.h_skel \
83 init_args_info.h_skel \
84 custom_getopt_gen.h_skel \
85 check_modes.h_skel \
86 enum_decl.h_skel \
87 $(BUILT_SOURCES)
88
89 built-clean:
90         cd @srcdir@ && rm -f $(BUILT_SOURCES)