aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/Makefile.am
blob: 49518b2313d39b6aaeef8cec35a7f5c9e49c6e39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
include $(top_srcdir)/misc/common-makefile.am

AM_CXXFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src \
	      @PALUDIS_CXXFLAGS@ @PALUDIS_CXXFLAGS_NO_WOLD_STYLE_CAST@ @PALUDIS_CXXFLAGS_VISIBILITY@
DEFS= \
	-DBINDIR=\"$(bindir)\" \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
	-DDATADIR=\"$(datadir)\" \
	-DLIBEXECDIR=\"$(libexecdir)\" \
	-DLIBDIR=\"$(libdir)\" \
	-DPYTHONINSTALLDIR=\"$(PYTHON_INSTALL_DIR)\" \
	-DRUBYINSTALLDIR=\"$(RUBY_INSTALL_DIR)\"

SUBDIRS = .

bin_PROGRAMS = cave

noinst_PROGRAMS = man-cave

# Also update doc/clients/Makefile.am when adding here:
command_MANS = \
	cave-config.1 \
	cave-contents.1 \
	cave-display-resolution.1 \
	cave-dump-cave-formats-conf.1 \
	cave-executables.1 \
	cave-execute-resolution.1 \
	cave-find-candidates.1 \
	cave-fix-cache.1 \
	cave-fix-linkage.1 \
	cave-help.1 \
	cave-import.1 \
	cave-info.1 \
	cave-manage-search-index.1 \
	cave-match.1 \
	cave-owner.1 \
	cave-perform.1 \
	cave-print-categories.1 \
	cave-print-commands.1 \
	cave-print-environment-metadata.1 \
	cave-print-id-actions.1 \
	cave-print-id-contents.1 \
	cave-print-id-environment-variable.1 \
	cave-print-id-executables.1 \
	cave-print-id-masks.1 \
	cave-print-id-metadata.1 \
	cave-print-ids.1 \
	cave-print-owners.1 \
	cave-print-packages.1 \
	cave-print-repositories.1 \
	cave-print-repository-formats.1 \
	cave-print-repository-metadata.1 \
	cave-print-set.1 \
	cave-print-sets.1 \
	cave-print-sync-protocols.1 \
	cave-purge.1 \
	cave-report.1 \
	cave-resolve.1 \
	cave-resume.1 \
	cave-search.1 \
	cave-show.1 \
	cave-sync.1 \
	cave-uninstall.1 \
	cave-update-world.1 \
	cave-verify.1

man_MANS = \
	cave.1 \
	$(command_MANS)

cave.1 : man-cave
	env \
	    CAVE_FORMATS_CONF="/dev/null" \
	    CAVE_COMMANDS_PATH="" \
	    ./man-cave > $@

$(command_MANS) : man-cave
	if ! env \
	    CAVE_FORMATS_CONF="/dev/null" \
	    CAVE_COMMANDS_PATH="" \
	    ./man-cave `echo $@ | sed -e 's.^cave-..' -e 's,\.1$$,,'` > $@ ; then rm -f $@ ; exit 1 ; fi

cave_SOURCES = \
	cave.cc

cave_LDADD = \
	libcave.a \
	$(top_builddir)/paludis/libpaludis_@PALUDIS_PC_SLOT@.la \
	$(top_builddir)/paludis/args/libpaludisargs_@PALUDIS_PC_SLOT@.la \
	$(top_builddir)/paludis/util/libpaludisutil_@PALUDIS_PC_SLOT@.la \
	$(top_builddir)/paludis/resolver/libpaludisresolver.a \
	$(top_builddir)/src/output/liboutput.a \
	$(DYNAMIC_LD_LIBS)

man_cave_SOURCES = \
	man_cave.cc

man_cave_LDADD = \
	libcave.a \
	$(top_builddir)/paludis/libpaludis_@PALUDIS_PC_SLOT@.la \
	$(top_builddir)/paludis/args/libpaludisargs_@PALUDIS_PC_SLOT@.la \
	$(top_builddir)/paludis/util/libpaludisutil_@PALUDIS_PC_SLOT@.la \
	$(top_builddir)/paludis/resolver/libpaludisresolver.a

noinst_LIBRARIES = libcave.a

# Also update command_MANS above when adding new commands here:
libcave_a_SOURCES = \
	colour_formatter.cc colour_formatter.hh colour_formatter-fmt.hh \
	command.cc command.hh \
	command_line.cc command_line.hh \
	command_command_line.cc command_command_line.hh \
	command_factory.cc command_factory.hh \
	cmd_contents.cc cmd_contents.hh cmd_contents-fmt.hh \
	cmd_config.cc cmd_config.hh \
	cmd_display_resolution.cc cmd_display_resolution.hh cmd_display_resolution-fmt.hh \
	cmd_dump_cave_formats_conf.cc cmd_dump_cave_formats_conf.hh \
	cmd_executables.cc cmd_executables.hh cmd_executables-fmt.hh \
	cmd_execute_resolution.cc cmd_execute_resolution.hh cmd_execute_resolution-fmt.hh \
	cmd_find_candidates.cc cmd_find_candidates.hh \
	cmd_fix_cache.cc cmd_fix_cache.hh cmd_fix_cache-fmt.hh \
	cmd_fix_linkage.cc cmd_fix_linkage.hh \
	cmd_help.cc cmd_help.hh \
	cmd_import.cc cmd_import.hh \
	cmd_info.cc cmd_info.hh cmd_info-fmt.hh \
	cmd_manage_search_index.cc cmd_manage_search_index.hh \
	cmd_match.cc cmd_match.hh \
	cmd_owner.cc cmd_owner.hh cmd_owner-fmt.hh \
	cmd_perform.cc cmd_perform.hh cmd_perform-fmt.hh \
	cmd_print_categories.cc cmd_print_categories.hh \
	cmd_print_commands.cc cmd_print_commands.hh \
	cmd_print_environment_metadata.cc cmd_print_environment_metadata.hh \
	cmd_print_id_actions.cc cmd_print_id_actions.hh \
	cmd_print_id_contents.cc cmd_print_id_contents.hh \
	cmd_print_id_environment_variable.cc cmd_print_id_environment_variable.hh \
	cmd_print_id_executables.cc cmd_print_id_executables.hh \
	cmd_print_id_masks.cc cmd_print_id_masks.hh \
	cmd_print_id_metadata.cc cmd_print_id_metadata.hh \
	cmd_print_ids.cc cmd_print_ids.hh \
	cmd_print_owners.cc cmd_print_owners.hh \
	cmd_print_packages.cc cmd_print_packages.hh \
	cmd_print_repositories.cc cmd_print_repositories.hh \
	cmd_print_repository_formats.cc cmd_print_repository_formats.hh \
	cmd_print_repository_metadata.cc cmd_print_repository_metadata.hh \
	cmd_print_set.cc cmd_print_set.hh \
	cmd_print_sets.cc cmd_print_sets.hh \
	cmd_print_sync_protocols.cc cmd_print_sync_protocols.hh \
	cmd_purge.cc cmd_purge.hh \
	cmd_report.cc cmd_report.hh cmd_report-fmt.hh \
	cmd_resolve.cc cmd_resolve.hh \
	cmd_resolve_cmdline.cc cmd_resolve_cmdline.hh \
	cmd_resolve_display_callback.cc cmd_resolve_display_callback.hh \
	cmd_resolve_dump.cc cmd_resolve_dump.hh \
	cmd_resume.cc cmd_resume.hh \
	cmd_search.cc cmd_search.hh \
	cmd_search_cmdline.cc cmd_search_cmdline.hh \
	cmd_show.cc cmd_show.hh cmd_show-fmt.hh \
	cmd_sync.cc cmd_sync.hh cmd_sync-fmt.hh \
	cmd_uninstall.cc cmd_uninstall.hh \
	cmd_update_world.cc cmd_update_world.hh cmd_update_world-fmt.hh \
	cmd_verify.cc cmd_verify.hh cmd_verify-fmt.hh \
	colours.cc colours.hh \
	exceptions.cc exceptions.hh \
	executables_common.cc executables_common.hh \
	format_plain_contents_entry.cc format_plain_contents_entry.hh \
	format_plain_metadata_key.cc format_plain_metadata_key.hh \
	format_string.cc format_string.hh \
	format_user_config.cc format_user_config.hh \
	script_command.cc script_command.hh \
	search_extras_handle.cc search_extras_handle.hh \
	select_format_for_spec.cc select_format_for_spec.hh \
	owner_common.cc owner_common.hh \
	resolve_common.cc resolve_common.hh \
	resume_data.cc resume_data.hh

TESTS = \
	continue_on_failure_TEST

EXTRA_DIST = \
	$(man_MANS) \
	$(TESTS) \
	continue_on_failure_TEST_setup.sh continue_on_failure_TEST_cleanup.sh

DISTCLEANFILES = $(man_MANS) $(noinst_DATA)

CLEANFILES += .keep

lib_LTLIBRARIES =

lib_LTLIBRARIES += libcavematchextras_@PALUDIS_PC_SLOT@.la

libcavematchextras_@PALUDIS_PC_SLOT@_la_SOURCES = match_extras.cc match_extras.hh
libcavematchextras_@PALUDIS_PC_SLOT@_la_CXXFLAGS = $(AM_CXXFLAGS) @PCRECPPDEPS_CFLAGS@
libcavematchextras_@PALUDIS_PC_SLOT@_la_LIBADD = @PCRECPPDEPS_LIBS@
libcavematchextras_@PALUDIS_PC_SLOT@_la_LDFLAGS = -version-info @VERSION_LIB_CURRENT@:@VERSION_LIB_REVISION@:0

if ENABLE_SEARCH_INDEX

lib_LTLIBRARIES += libcavesearchextras_@PALUDIS_PC_SLOT@.la

libcavesearchextras_@PALUDIS_PC_SLOT@_la_SOURCES = search_extras.cc search_extras.hh
libcavesearchextras_@PALUDIS_PC_SLOT@_la_CXXFLAGS = $(AM_CXXFLAGS) @SQLITE3DEPS_CFLAGS@
libcavesearchextras_@PALUDIS_PC_SLOT@_la_LIBADD = @SQLITE3DEPS_LIBS@
libcavesearchextras_@PALUDIS_PC_SLOT@_la_LDFLAGS = -version-info @VERSION_LIB_CURRENT@:@VERSION_LIB_REVISION@:0

endif

cavecommandsdir = $(libexecdir)/cave/commands
cavecommands_DATA = .keep

.keep :
	touch $@