]>
Commit | Line | Data |
---|---|---|
b55979b4 MT |
1 | ############################################################################### |
2 | # # | |
3 | # Pakfire - The IPFire package management system # | |
4 | # Copyright (C) 2013 Pakfire development team # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} | |
22 | AM_MAKEFLAGS = --no-print-directory | |
23 | AUTOMAKE_OPTIONS = color-tests | |
24 | ||
25 | # remove target it the command fails | |
26 | .DELETE_ON_ERROR: | |
27 | ||
28 | # keep itermediate files | |
29 | .SECONDARY: | |
30 | ||
31 | SUBDIRS = . po | |
32 | ||
33 | libexecdir = $(libdir)/pakfire | |
b72b666b | 34 | pythondir = $(pyexecdir) |
b55979b4 MT |
35 | |
36 | configsdir = $(sysconfdir)/pakfire | |
37 | configsdistrosdir = $(configsdir)/distros | |
38 | macrosdir = $(prefix)/lib/pakfire/macros | |
39 | qualityagentdir = $(prefix)/lib/quality-agent | |
40 | scriptsdir = $(prefix)/lib/$(PACKAGE_NAME) | |
41 | ||
42 | CLEANFILES = | |
43 | DISTCLEANFILES = | |
44 | EXTRA_DIST = | |
45 | ||
46 | AM_CPPFLAGS = \ | |
47 | -include $(top_builddir)/config.h \ | |
48 | -I $(top_srcdir)/include \ | |
49 | $(OUR_CPPFLAGS) | |
50 | ||
51 | AM_CFLAGS = $(OUR_CFLAGS) | |
52 | AM_LDFLAGS = $(OUR_LDFLAGS) | |
53 | ||
54 | lib_LTLIBRARIES = | |
55 | libexec_PROGRAMS = | |
56 | pkgpyexec_LTLIBRARIES = | |
57 | ||
58 | DISTCHECK_CONFIGURE_FLAGS = \ | |
59 | --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) | |
60 | ||
61 | @INTLTOOL_POLICY_RULE@ | |
62 | ||
d1de2db6 MT |
63 | .PHONY: update-po |
64 | update-po: | |
65 | $(MAKE) -C po update-po | |
66 | ||
b55979b4 MT |
67 | # ------------------------------------------------------------------------------ |
68 | ||
69 | dist_doc_DATA = \ | |
70 | COPYING \ | |
71 | I18N \ | |
72 | README | |
73 | ||
74 | # ------------------------------------------------------------------------------ | |
75 | ||
76 | dist_bin_SCRIPTS = \ | |
77 | src/scripts/pakfire | |
78 | ||
79 | install-exec-local: | |
80 | $(MKDIR_P) $(DESTDIR)/$(bindir) | |
81 | cd $(DESTDIR)/$(bindir) && \ | |
82 | $(LN_S) -vf pakfire pakfire-builder && \ | |
83 | $(LN_S) -vf pakfire pakfire-client && \ | |
84 | $(LN_S) -vf pakfire pakfire-daemon && \ | |
85 | $(LN_S) -vf pakfire pakfire-key | |
86 | ||
87 | $(MKDIR_P) $(DESTDIR)/$(scriptsdir) | |
88 | cd $(DESTDIR)/$(scriptsdir) && \ | |
89 | $(LN_S) -vf ../../bin/pakfire builder | |
90 | ||
91 | # ------------------------------------------------------------------------------ | |
92 | ||
93 | pakfire_PYTHON = \ | |
94 | src/pakfire/__init__.py \ | |
95 | src/pakfire/__version__.py \ | |
96 | src/pakfire/actions.py \ | |
97 | src/pakfire/base.py \ | |
98 | src/pakfire/builder.py \ | |
99 | src/pakfire/cgroup.py \ | |
100 | src/pakfire/client.py \ | |
101 | src/pakfire/cli.py \ | |
102 | src/pakfire/compress.py \ | |
103 | src/pakfire/config.py \ | |
104 | src/pakfire/constants.py \ | |
105 | src/pakfire/daemon.py \ | |
106 | src/pakfire/distro.py \ | |
107 | src/pakfire/downloader.py \ | |
108 | src/pakfire/errors.py \ | |
109 | src/pakfire/filelist.py \ | |
110 | src/pakfire/i18n.py \ | |
111 | src/pakfire/keyring.py \ | |
112 | src/pakfire/logger.py \ | |
113 | src/pakfire/lzma.py \ | |
dccd65ea | 114 | src/pakfire/progressbar.py \ |
b55979b4 MT |
115 | src/pakfire/satsolver.py \ |
116 | src/pakfire/server.py \ | |
117 | src/pakfire/shell.py \ | |
118 | src/pakfire/system.py \ | |
119 | src/pakfire/transaction.py \ | |
120 | src/pakfire/transport.py \ | |
121 | src/pakfire/util.py | |
122 | ||
123 | pakfiredir = $(pythondir)/pakfire | |
124 | ||
125 | # ------------------------------------------------------------------------------ | |
126 | ||
127 | pakfire_packages_PYTHON = \ | |
128 | src/pakfire/packages/__init__.py \ | |
129 | src/pakfire/packages/base.py \ | |
130 | src/pakfire/packages/file.py \ | |
131 | src/pakfire/packages/installed.py \ | |
132 | src/pakfire/packages/lexer.py \ | |
133 | src/pakfire/packages/make.py \ | |
134 | src/pakfire/packages/packager.py \ | |
135 | src/pakfire/packages/solv.py \ | |
136 | src/pakfire/packages/tar.py | |
137 | ||
138 | pakfire_packagesdir = $(pythondir)/pakfire/packages | |
139 | ||
140 | # ------------------------------------------------------------------------------ | |
141 | ||
142 | pakfire_repository_PYTHON = \ | |
143 | src/pakfire/repository/__init__.py \ | |
144 | src/pakfire/repository/base.py \ | |
145 | src/pakfire/repository/cache.py \ | |
146 | src/pakfire/repository/database.py \ | |
147 | src/pakfire/repository/index.py \ | |
148 | src/pakfire/repository/local.py \ | |
149 | src/pakfire/repository/metadata.py \ | |
150 | src/pakfire/repository/remote.py \ | |
151 | src/pakfire/repository/system.py | |
152 | ||
153 | pakfire_repositorydir = $(pythondir)/pakfire/repository | |
154 | ||
155 | # ------------------------------------------------------------------------------ | |
156 | ||
157 | pkgpyexec_LTLIBRARIES += \ | |
158 | _lzma.la | |
159 | ||
160 | _lzma_la_SOURCES = \ | |
161 | src/_lzma/_lzmamodule.c | |
162 | ||
163 | _lzma_la_CFLAGS = \ | |
164 | $(AM_CFLAGS) \ | |
165 | $(PYTHON_DEVEL_CFLAGS) \ | |
166 | $(LZMA_CFLAGS) | |
167 | ||
168 | _lzma_la_LDFLAGS = \ | |
169 | $(AM_LDFLAGS) \ | |
170 | -shared \ | |
171 | -module \ | |
172 | -avoid-version | |
173 | ||
174 | _lzma_la_LIBADD = \ | |
175 | $(PYTHON_DEVEL_LIBS) \ | |
176 | $(LZMA_LIBS) | |
177 | ||
178 | # ------------------------------------------------------------------------------ | |
179 | ||
180 | pkgpyexec_LTLIBRARIES += \ | |
181 | _pakfire.la | |
182 | ||
183 | _pakfire_la_SOURCES = \ | |
184 | src/_pakfire/_pakfiremodule.c \ | |
185 | src/_pakfire/capabilities.c \ | |
186 | src/_pakfire/capabilities.h \ | |
187 | src/_pakfire/constants.h \ | |
188 | src/_pakfire/pool.c \ | |
189 | src/_pakfire/pool.h \ | |
190 | src/_pakfire/problem.c \ | |
191 | src/_pakfire/problem.h \ | |
192 | src/_pakfire/relation.c \ | |
193 | src/_pakfire/relation.h \ | |
194 | src/_pakfire/repo.c \ | |
195 | src/_pakfire/repo.h \ | |
196 | src/_pakfire/request.c \ | |
197 | src/_pakfire/request.h \ | |
198 | src/_pakfire/solution.c \ | |
199 | src/_pakfire/solution.h \ | |
200 | src/_pakfire/solvable.c \ | |
201 | src/_pakfire/solvable.h \ | |
202 | src/_pakfire/solver.c \ | |
203 | src/_pakfire/solver.h \ | |
204 | src/_pakfire/step.c \ | |
205 | src/_pakfire/step.h \ | |
206 | src/_pakfire/transaction.c \ | |
207 | src/_pakfire/transaction.h \ | |
208 | src/_pakfire/util.c \ | |
209 | src/_pakfire/util.h | |
210 | ||
211 | _pakfire_la_CFLAGS = \ | |
212 | $(AM_CFLAGS) \ | |
213 | $(PYTHON_DEVEL_CFLAGS) \ | |
214 | $(CAP_CFLAGS) \ | |
215 | $(SOLV_CFLAGS) | |
216 | ||
217 | _pakfire_la_LDFLAGS = \ | |
218 | $(AM_LDFLAGS) \ | |
219 | -shared \ | |
220 | -module \ | |
221 | -avoid-version | |
222 | ||
223 | _pakfire_la_LIBADD = \ | |
224 | $(PYTHON_DEVEL_LIBS) \ | |
225 | $(CAP_LIBS) \ | |
226 | $(SOLV_LIBS) | |
227 | ||
228 | # ------------------------------------------------------------------------------ | |
229 | ||
230 | lib_LTLIBRARIES += \ | |
231 | libpakfire_preload.la | |
232 | ||
233 | libpakfire_preload_la_SOURCES = \ | |
234 | src/libpakfire_preload/uname.c | |
235 | ||
236 | libpakfire_preload_la_LDFLAGS = \ | |
237 | $(AM_LDFLAGS) \ | |
238 | -shared \ | |
239 | -module \ | |
240 | -avoid-version | |
241 | ||
242 | libpakfire_preload_la_LIBADD = \ | |
243 | $(DL_LIBS) | |
244 | ||
245 | # ------------------------------------------------------------------------------ | |
246 | ||
b55979b4 MT |
247 | scripts_SCRIPTS = \ |
248 | src/scripts/extract-debuginfo \ | |
249 | src/scripts/quality-agent | |
250 | ||
251 | EXTRA_DIST += \ | |
252 | src/scripts/extract-debuginfo.in \ | |
253 | src/scripts/quality-agent.in | |
254 | ||
255 | CLEANFILES += \ | |
256 | src/scripts/extract-debuginfo \ | |
257 | src/scripts/quality-agent | |
258 | ||
259 | dist_scripts_SCRIPTS = \ | |
260 | src/scripts/chroot-shell \ | |
261 | src/scripts/cleanup \ | |
262 | src/scripts/compress-man-pages \ | |
263 | src/scripts/find-common \ | |
264 | src/scripts/find-prerequires \ | |
265 | src/scripts/find-provides \ | |
266 | src/scripts/find-requires \ | |
267 | src/scripts/patch \ | |
268 | src/scripts/perl.prov \ | |
269 | src/scripts/perl.req \ | |
270 | src/scripts/py-compile \ | |
271 | src/scripts/remove-static-libs | |
272 | ||
273 | dist_scripts_DATA = \ | |
274 | src/scripts/functions-common \ | |
275 | src/scripts/functions-constants \ | |
276 | src/scripts/functions-directories \ | |
277 | src/scripts/functions-files \ | |
278 | src/scripts/functions-lists \ | |
279 | src/scripts/functions-logging | |
280 | ||
281 | # ------------------------------------------------------------------------------ | |
282 | ||
283 | dist_qualityagent_SCRIPTS = \ | |
284 | src/quality-agent/001-include-files \ | |
285 | src/quality-agent/001-remove-info-files \ | |
286 | src/quality-agent/001-unsafe-files \ | |
287 | src/quality-agent/002-bad-symlinks \ | |
288 | src/quality-agent/003-libs-location \ | |
289 | src/quality-agent/050-canary \ | |
290 | src/quality-agent/050-execstacks \ | |
291 | src/quality-agent/050-invalid-interpreters \ | |
292 | src/quality-agent/050-libs-needed \ | |
293 | src/quality-agent/050-libs-soname \ | |
294 | src/quality-agent/050-libs-x86_64 \ | |
295 | src/quality-agent/050-nx \ | |
296 | src/quality-agent/050-relro \ | |
297 | src/quality-agent/050-rpaths \ | |
298 | src/quality-agent/095-directory-layout | |
299 | ||
300 | dist_qualityagent_DATA = \ | |
301 | src/quality-agent/qa-include | |
302 | ||
303 | # ------------------------------------------------------------------------------ | |
304 | ||
305 | dist_macros_DATA = \ | |
306 | macros/arch.macro \ | |
307 | macros/build.macro \ | |
308 | macros/cflags.macro \ | |
309 | macros/constants.macro \ | |
310 | macros/package-default.macro \ | |
311 | macros/perl.macro \ | |
312 | macros/python.macro \ | |
313 | macros/quality-agent.macro \ | |
314 | macros/systemd.macro \ | |
315 | macros/templates.macro | |
316 | ||
317 | # ------------------------------------------------------------------------------ | |
318 | ||
319 | if HAVE_SYSTEMD | |
320 | systemdsystemunit_DATA = \ | |
321 | src/systemd/pakfire-daemon.service | |
322 | ||
323 | EXTRA_DIST += \ | |
324 | src/systemd/pakfire-daemon.service.in | |
325 | ||
326 | CLEANFILES += \ | |
327 | src/systemd/pakfire-daemon.service | |
328 | endif | |
329 | ||
330 | # ------------------------------------------------------------------------------ | |
331 | ||
332 | dist_configs_DATA = \ | |
333 | contrib/config/builder.conf \ | |
334 | contrib/config/client.conf \ | |
335 | contrib/config/daemon.conf \ | |
336 | contrib/config/general.conf | |
337 | ||
338 | dist_configsdistros_DATA = \ | |
339 | contrib/config/distros/ipfire3.conf | |
340 | ||
341 | # ------------------------------------------------------------------------------ | |
342 | ||
343 | substitutions = \ | |
344 | '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ | |
345 | '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ | |
346 | '|bindir=$(bindir)|' \ | |
347 | '|libexecdir=$(libexecdir)|' \ | |
348 | '|qualityagentdir=$(qualityagentdir)|' | |
349 | ||
350 | SED_PROCESS = \ | |
351 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
352 | $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ | |
353 | < $< > $@ | |
354 | ||
355 | src/scripts/%: src/scripts/%.in Makefile | |
356 | $(SED_PROCESS) | |
357 | ||
358 | src/systemd/%: src/systemd/%.in Makefile | |
359 | $(SED_PROCESS) | |
db5396bb MT |
360 | |
361 | # - testsuite ------------------------------------------------------------------ | |
362 | ||
363 | TESTS_ENVIRONMENT = \ | |
364 | PYTHONPATH="$(top_srcdir)/.libs:$(top_srcdir)/src" \ | |
365 | topdir="$(shell pwd)" | |
366 | ||
367 | dist_check_SCRIPTS = \ | |
368 | tests/module-load.py | |
369 | ||
370 | TESTS = \ | |
371 | $(dist_check_SCRTIPS) |