]>
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 | ||
221cc3ce MT |
33 | LIBPAKFIRE_CURRENT=0 |
34 | LIBPAKFIRE_REVISION=0 | |
35 | LIBPAKFIRE_AGE=0 | |
36 | ||
b55979b4 | 37 | libexecdir = $(libdir)/pakfire |
b72b666b | 38 | pythondir = $(pyexecdir) |
b55979b4 MT |
39 | |
40 | configsdir = $(sysconfdir)/pakfire | |
41 | configsdistrosdir = $(configsdir)/distros | |
42 | macrosdir = $(prefix)/lib/pakfire/macros | |
43 | qualityagentdir = $(prefix)/lib/quality-agent | |
44 | scriptsdir = $(prefix)/lib/$(PACKAGE_NAME) | |
45 | ||
5f185fab | 46 | TEST_ROOTFS = $(abs_top_builddir)/tests/.root |
3e936d67 | 47 | |
dee8ae80 | 48 | BUILT_SOURCES = |
b55979b4 MT |
49 | CLEANFILES = |
50 | DISTCLEANFILES = | |
51 | EXTRA_DIST = | |
52 | ||
53 | AM_CPPFLAGS = \ | |
54 | -include $(top_builddir)/config.h \ | |
55 | -I $(top_srcdir)/include \ | |
56 | $(OUR_CPPFLAGS) | |
57 | ||
9f953e68 MT |
58 | AM_CFLAGS = $(OUR_CFLAGS) \ |
59 | -ffunction-sections \ | |
60 | -fdata-sections | |
61 | ||
62 | AM_LDFLAGS = $(OUR_LDFLAGS) \ | |
63 | -Wl,--gc-sections \ | |
64 | -Wl,--as-needed | |
b55979b4 | 65 | |
7b463f34 MT |
66 | PAKFIRE_CPPFLAGS = -I$(top_srcdir)/src/libpakfire/include |
67 | PAKFIRE_LIBS = libpakfire.la | |
b8a51cb6 | 68 | |
7b463f34 | 69 | check_PROGRAMS = |
b55979b4 MT |
70 | lib_LTLIBRARIES = |
71 | libexec_PROGRAMS = | |
f9a691ef | 72 | noinst_LTLIBRARIES = |
b55979b4 | 73 | pkgpyexec_LTLIBRARIES = |
221cc3ce | 74 | pkginclude_HEADERS = |
b55979b4 MT |
75 | |
76 | DISTCHECK_CONFIGURE_FLAGS = \ | |
a7d75de9 MT |
77 | --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \ |
78 | --enable-debug | |
b55979b4 MT |
79 | |
80 | @INTLTOOL_POLICY_RULE@ | |
81 | ||
3e936d67 MT |
82 | clean-local: clean-local-check |
83 | ||
d1de2db6 | 84 | .PHONY: update-po |
cfcdf2ab | 85 | update-po: po/POTFILES.in |
d1de2db6 MT |
86 | $(MAKE) -C po update-po |
87 | ||
cfcdf2ab MT |
88 | po/POTFILES.in: Makefile |
89 | find $(abs_srcdir)/src | \ | |
90 | grep -E "\.(c|in|py)$$" | sed -e "s@$(abs_srcdir)/@@g" | LC_COLLATE=C sort > $@ | |
91 | ||
b55979b4 MT |
92 | # ------------------------------------------------------------------------------ |
93 | ||
94 | dist_doc_DATA = \ | |
95 | COPYING \ | |
96 | I18N \ | |
97 | README | |
98 | ||
99 | # ------------------------------------------------------------------------------ | |
100 | ||
101 | dist_bin_SCRIPTS = \ | |
102 | src/scripts/pakfire | |
103 | ||
104 | install-exec-local: | |
105 | $(MKDIR_P) $(DESTDIR)/$(bindir) | |
106 | cd $(DESTDIR)/$(bindir) && \ | |
107 | $(LN_S) -vf pakfire pakfire-builder && \ | |
108 | $(LN_S) -vf pakfire pakfire-client && \ | |
109 | $(LN_S) -vf pakfire pakfire-daemon && \ | |
110 | $(LN_S) -vf pakfire pakfire-key | |
111 | ||
b55979b4 MT |
112 | # ------------------------------------------------------------------------------ |
113 | ||
114 | pakfire_PYTHON = \ | |
115 | src/pakfire/__init__.py \ | |
116 | src/pakfire/__version__.py \ | |
b55979b4 MT |
117 | src/pakfire/base.py \ |
118 | src/pakfire/builder.py \ | |
ec52b795 | 119 | src/pakfire/cgroups.py \ |
b55979b4 MT |
120 | src/pakfire/client.py \ |
121 | src/pakfire/cli.py \ | |
b55979b4 MT |
122 | src/pakfire/config.py \ |
123 | src/pakfire/constants.py \ | |
124 | src/pakfire/daemon.py \ | |
125 | src/pakfire/distro.py \ | |
3265ba73 | 126 | src/pakfire/downloaders.py \ |
b55979b4 | 127 | src/pakfire/errors.py \ |
7eec9830 | 128 | src/pakfire/http.py \ |
96a8f2a4 | 129 | src/pakfire/hub.py \ |
b55979b4 | 130 | src/pakfire/i18n.py \ |
b55979b4 | 131 | src/pakfire/logger.py \ |
b55979b4 | 132 | src/pakfire/system.py \ |
b55979b4 MT |
133 | src/pakfire/util.py |
134 | ||
135 | pakfiredir = $(pythondir)/pakfire | |
136 | ||
137 | # ------------------------------------------------------------------------------ | |
138 | ||
139 | pakfire_packages_PYTHON = \ | |
140 | src/pakfire/packages/__init__.py \ | |
b55979b4 | 141 | src/pakfire/packages/packager.py \ |
b55979b4 MT |
142 | src/pakfire/packages/tar.py |
143 | ||
144 | pakfire_packagesdir = $(pythondir)/pakfire/packages | |
145 | ||
146 | # ------------------------------------------------------------------------------ | |
147 | ||
148 | pakfire_repository_PYTHON = \ | |
149 | src/pakfire/repository/__init__.py \ | |
f5d79636 | 150 | src/pakfire/repository/metadata.py |
b55979b4 MT |
151 | |
152 | pakfire_repositorydir = $(pythondir)/pakfire/repository | |
153 | ||
154 | # ------------------------------------------------------------------------------ | |
155 | ||
10458aa0 MT |
156 | pakfire_ui_PYTHON = \ |
157 | src/pakfire/ui/__init__.py \ | |
0a257615 MT |
158 | src/pakfire/ui/base.py \ |
159 | src/pakfire/ui/cli.py \ | |
10458aa0 MT |
160 | src/pakfire/ui/helpers.py \ |
161 | src/pakfire/ui/progressbar.py | |
162 | ||
163 | pakfire_uidir = $(pythondir)/pakfire/ui | |
164 | ||
165 | # ------------------------------------------------------------------------------ | |
166 | ||
b55979b4 MT |
167 | pkgpyexec_LTLIBRARIES += \ |
168 | _pakfire.la | |
169 | ||
170 | _pakfire_la_SOURCES = \ | |
171 | src/_pakfire/_pakfiremodule.c \ | |
f1f8452b MT |
172 | src/_pakfire/archive.c \ |
173 | src/_pakfire/archive.h \ | |
b55979b4 | 174 | src/_pakfire/constants.h \ |
a5845b60 | 175 | src/_pakfire/errors.h \ |
0a89bb8a MT |
176 | src/_pakfire/key.c \ |
177 | src/_pakfire/key.h \ | |
b8a51cb6 MT |
178 | src/_pakfire/package.c \ |
179 | src/_pakfire/package.h \ | |
6e46b18e MT |
180 | src/_pakfire/pakfire.c \ |
181 | src/_pakfire/pakfire.h \ | |
40f17018 MT |
182 | src/_pakfire/parser.c \ |
183 | src/_pakfire/parser.h \ | |
b55979b4 MT |
184 | src/_pakfire/problem.c \ |
185 | src/_pakfire/problem.h \ | |
186 | src/_pakfire/relation.c \ | |
187 | src/_pakfire/relation.h \ | |
188 | src/_pakfire/repo.c \ | |
189 | src/_pakfire/repo.h \ | |
190 | src/_pakfire/request.c \ | |
191 | src/_pakfire/request.h \ | |
9b62fe40 MT |
192 | src/_pakfire/selector.c \ |
193 | src/_pakfire/selector.h \ | |
b55979b4 MT |
194 | src/_pakfire/solution.c \ |
195 | src/_pakfire/solution.h \ | |
b55979b4 MT |
196 | src/_pakfire/step.c \ |
197 | src/_pakfire/step.h \ | |
198 | src/_pakfire/transaction.c \ | |
199 | src/_pakfire/transaction.h \ | |
200 | src/_pakfire/util.c \ | |
201 | src/_pakfire/util.h | |
202 | ||
7b463f34 | 203 | _pakfire_la_CPPFLAGS = \ |
f06095f1 | 204 | -include $(top_builddir)/config.h \ |
7b463f34 MT |
205 | $(PAKFIRE_CPPFLAGS) |
206 | ||
b55979b4 MT |
207 | _pakfire_la_CFLAGS = \ |
208 | $(AM_CFLAGS) \ | |
209 | $(PYTHON_DEVEL_CFLAGS) \ | |
aa92274c | 210 | -Wno-cast-function-type |
b55979b4 MT |
211 | |
212 | _pakfire_la_LDFLAGS = \ | |
213 | $(AM_LDFLAGS) \ | |
214 | -shared \ | |
215 | -module \ | |
216 | -avoid-version | |
217 | ||
218 | _pakfire_la_LIBADD = \ | |
219 | $(PYTHON_DEVEL_LIBS) \ | |
0df05626 | 220 | $(PAKFIRE_LIBS) |
b55979b4 MT |
221 | |
222 | # ------------------------------------------------------------------------------ | |
223 | ||
f9a691ef | 224 | CLEANFILES += \ |
da7b0ac4 MT |
225 | src/libpakfire/parser/grammar.c \ |
226 | src/libpakfire/parser/grammar.h \ | |
227 | src/libpakfire/parser/scanner.c | |
f9a691ef MT |
228 | |
229 | noinst_LTLIBRARIES += \ | |
230 | libpakfire-parser.la | |
231 | ||
232 | libpakfire_parser_la_SOURCES = \ | |
233 | src/libpakfire/parser/grammar.h \ | |
234 | src/libpakfire/parser/grammar.y \ | |
235 | src/libpakfire/parser/scanner.l | |
236 | ||
237 | libpakfire_parser_la_CFLAGS = \ | |
238 | $(AM_CFLAGS) | |
239 | ||
35ebb186 MT |
240 | libpakfire_parser_la_CPPFLAGS = \ |
241 | $(AM_CPPFLAGS) \ | |
242 | -I$(top_srcdir)/src/libpakfire/include \ | |
a0258b56 MT |
243 | -include $(top_builddir)/config.h \ |
244 | -DPAKFIRE_PRIVATE | |
35ebb186 | 245 | |
f9a691ef MT |
246 | src/libpakfire/parser/scanner.c: src/libpakfire/parser/grammar.h |
247 | ||
dee8ae80 MT |
248 | src/libpakfire/parser/grammar.h: src/libpakfire/parser/grammar.c |
249 | ||
250 | src/libpakfire/parser/grammar.c: src/libpakfire/parser/grammar.y Makefile | |
251 | $(AM_V_GEN) $(BISON) -Wall -t -d -o $@ $< | |
252 | ||
253 | BUILT_SOURCES += \ | |
254 | src/libpakfire/parser/grammar.h | |
255 | ||
221cc3ce MT |
256 | lib_LTLIBRARIES += \ |
257 | libpakfire.la | |
258 | ||
259 | libpakfire_la_SOURCES = \ | |
a5600261 | 260 | src/libpakfire/arch.c \ |
221cc3ce | 261 | src/libpakfire/archive.c \ |
33d55ab4 | 262 | src/libpakfire/db.c \ |
af41db7e | 263 | src/libpakfire/dist.c \ |
ba26680e | 264 | src/libpakfire/downloader.c \ |
221cc3ce | 265 | src/libpakfire/errno.c \ |
55b57cf6 | 266 | src/libpakfire/execute.c \ |
221cc3ce | 267 | src/libpakfire/file.c \ |
d03fa9a3 | 268 | src/libpakfire/filelist.c \ |
221cc3ce | 269 | src/libpakfire/filter.c \ |
0a89bb8a | 270 | src/libpakfire/key.c \ |
f06095f1 | 271 | src/libpakfire/logging.c \ |
221cc3ce | 272 | src/libpakfire/package.c \ |
6aeb48e6 | 273 | src/libpakfire/packager.c \ |
221cc3ce | 274 | src/libpakfire/packagelist.c \ |
6e46b18e | 275 | src/libpakfire/pakfire.c \ |
a426e6b8 | 276 | src/libpakfire/parser.c \ |
d528058e | 277 | src/libpakfire/problem.c \ |
ce389fc8 | 278 | src/libpakfire/pwd.c \ |
221cc3ce MT |
279 | src/libpakfire/relation.c \ |
280 | src/libpakfire/relationlist.c \ | |
281 | src/libpakfire/repo.c \ | |
221cc3ce | 282 | src/libpakfire/request.c \ |
101264c8 | 283 | src/libpakfire/scriptlet.c \ |
221cc3ce | 284 | src/libpakfire/selector.c \ |
9c8337dd | 285 | src/libpakfire/solution.c \ |
221cc3ce MT |
286 | src/libpakfire/step.c \ |
287 | src/libpakfire/transaction.c \ | |
288 | src/libpakfire/util.c | |
289 | ||
290 | pkginclude_HEADERS += \ | |
a5600261 | 291 | src/libpakfire/include/pakfire/arch.h \ |
221cc3ce | 292 | src/libpakfire/include/pakfire/archive.h \ |
221cc3ce | 293 | src/libpakfire/include/pakfire/constants.h \ |
33d55ab4 | 294 | src/libpakfire/include/pakfire/db.h \ |
af41db7e | 295 | src/libpakfire/include/pakfire/dist.h \ |
ba26680e | 296 | src/libpakfire/include/pakfire/downloader.h \ |
221cc3ce | 297 | src/libpakfire/include/pakfire/errno.h \ |
55b57cf6 | 298 | src/libpakfire/include/pakfire/execute.h \ |
221cc3ce | 299 | src/libpakfire/include/pakfire/file.h \ |
d03fa9a3 | 300 | src/libpakfire/include/pakfire/filelist.h \ |
221cc3ce MT |
301 | src/libpakfire/include/pakfire/filter.h \ |
302 | src/libpakfire/include/pakfire/i18n.h \ | |
0a89bb8a | 303 | src/libpakfire/include/pakfire/key.h \ |
f06095f1 | 304 | src/libpakfire/include/pakfire/logging.h \ |
221cc3ce | 305 | src/libpakfire/include/pakfire/package.h \ |
6aeb48e6 | 306 | src/libpakfire/include/pakfire/packager.h \ |
221cc3ce | 307 | src/libpakfire/include/pakfire/packagelist.h \ |
6e46b18e | 308 | src/libpakfire/include/pakfire/pakfire.h \ |
f9a691ef | 309 | src/libpakfire/include/pakfire/parser.h \ |
9f953e68 | 310 | src/libpakfire/include/pakfire/private.h \ |
d528058e | 311 | src/libpakfire/include/pakfire/problem.h \ |
ce389fc8 | 312 | src/libpakfire/include/pakfire/pwd.h \ |
221cc3ce MT |
313 | src/libpakfire/include/pakfire/relation.h \ |
314 | src/libpakfire/include/pakfire/relationlist.h \ | |
315 | src/libpakfire/include/pakfire/repo.h \ | |
221cc3ce | 316 | src/libpakfire/include/pakfire/request.h \ |
101264c8 | 317 | src/libpakfire/include/pakfire/scriptlet.h \ |
221cc3ce | 318 | src/libpakfire/include/pakfire/selector.h \ |
9c8337dd | 319 | src/libpakfire/include/pakfire/solution.h \ |
221cc3ce MT |
320 | src/libpakfire/include/pakfire/step.h \ |
321 | src/libpakfire/include/pakfire/transaction.h \ | |
322 | src/libpakfire/include/pakfire/types.h \ | |
323 | src/libpakfire/include/pakfire/util.h | |
324 | ||
325 | libpakfire_la_CFLAGS = \ | |
7b463f34 | 326 | $(AM_CFLAGS) \ |
9f953e68 | 327 | -fvisibility=hidden \ |
9d017afc | 328 | $(CURL_CFLAGS) \ |
36230729 | 329 | $(OPENSSL_CFLAGS) \ |
ae83d808 | 330 | $(PCRE2_CFLAGS) \ |
3350b942 | 331 | $(SOLV_CFLAGS) \ |
df552c32 MT |
332 | $(SQLITE3_CFLAGS) \ |
333 | $(UUID_CFLAGS) | |
221cc3ce MT |
334 | |
335 | libpakfire_la_CPPFLAGS = \ | |
336 | $(AM_CPPFLAGS) \ | |
337 | -I$(top_srcdir)/src/libpakfire/include \ | |
338 | -include $(top_builddir)/config.h \ | |
339 | -DPAKFIRE_PRIVATE | |
340 | ||
341 | libpakfire_la_LDFLAGS = \ | |
342 | $(AM_LDFLAGS) \ | |
343 | -version-info $(LIBPAKFIRE_CURRENT):$(LIBPAKFIRE_REVISION):$(LIBPAKFIRE_AGE) \ | |
344 | -Wl,--version-script=$(top_srcdir)/src/libpakfire/libpakfire.sym | |
345 | ||
346 | libpakfire_la_LIBADD = \ | |
f9a691ef | 347 | libpakfire-parser.la \ |
221cc3ce | 348 | $(ARCHIVE_LIBS) \ |
9d017afc | 349 | $(CURL_LIBS) \ |
0e75ae24 | 350 | $(GPGME_LIBS) \ |
e207c23c | 351 | $(LZMA_LIBS) \ |
36230729 | 352 | $(OPENSSL_LIBS) \ |
ae83d808 | 353 | $(PCRE2_LIBS) \ |
26affd69 | 354 | $(SOLV_LIBS) \ |
df552c32 MT |
355 | $(SQLITE3_LIBS) \ |
356 | $(UUID_LIBS) | |
221cc3ce | 357 | |
b30972cd | 358 | libpakfire_la_DEPENDENCIES = \ |
f9a691ef MT |
359 | src/libpakfire/libpakfire.sym \ |
360 | libpakfire-parser.la | |
b30972cd | 361 | |
221cc3ce MT |
362 | EXTRA_DIST += \ |
363 | src/libpakfire/libpakfire.sym | |
364 | ||
7b463f34 | 365 | check_PROGRAMS += \ |
35ed7247 | 366 | tests/libpakfire/main \ |
10ad6f16 | 367 | tests/libpakfire/arch \ |
134b2757 | 368 | tests/libpakfire/archive \ |
746e9da5 | 369 | tests/libpakfire/db \ |
55b57cf6 | 370 | tests/libpakfire/execute \ |
a46d234a | 371 | tests/libpakfire/key \ |
8d687eaa | 372 | tests/libpakfire/makefile \ |
8da2c139 | 373 | tests/libpakfire/packager \ |
e1392437 | 374 | tests/libpakfire/parser \ |
b9888230 | 375 | tests/libpakfire/repo \ |
e1392437 | 376 | tests/libpakfire/util |
7b463f34 MT |
377 | |
378 | dist_tests_libpakfire_main_SOURCES = \ | |
379 | tests/libpakfire/main.c | |
380 | ||
381 | tests_libpakfire_main_CPPFLAGS = \ | |
3e936d67 MT |
382 | $(TESTSUITE_CPPFLAGS) \ |
383 | -DTEST_ROOTFS=\"$(TEST_ROOTFS)\" | |
7b463f34 MT |
384 | |
385 | tests_libpakfire_main_LDADD = \ | |
386 | $(TESTSUITE_LDADD) \ | |
387 | $(PAKFIRE_LIBS) | |
388 | ||
10ad6f16 MT |
389 | tests_libpakfire_arch_SOURCES = \ |
390 | tests/libpakfire/arch.c | |
391 | ||
392 | tests_libpakfire_arch_CPPFLAGS = \ | |
393 | $(TESTSUITE_CPPFLAGS) | |
394 | ||
395 | tests_libpakfire_arch_LDADD = \ | |
396 | $(TESTSUITE_LDADD) \ | |
397 | $(PAKFIRE_LIBS) | |
398 | ||
134b2757 MT |
399 | tests_libpakfire_archive_SOURCES = \ |
400 | tests/libpakfire/archive.c | |
401 | ||
402 | tests_libpakfire_archive_CPPFLAGS = \ | |
403 | $(TESTSUITE_CPPFLAGS) | |
404 | ||
405 | tests_libpakfire_archive_LDADD = \ | |
406 | $(TESTSUITE_LDADD) \ | |
407 | $(PAKFIRE_LIBS) | |
408 | ||
746e9da5 MT |
409 | tests_libpakfire_db_SOURCES = \ |
410 | tests/libpakfire/db.c | |
411 | ||
412 | tests_libpakfire_db_CPPFLAGS = \ | |
413 | $(TESTSUITE_CPPFLAGS) | |
414 | ||
415 | tests_libpakfire_db_LDADD = \ | |
416 | $(TESTSUITE_LDADD) \ | |
417 | $(PAKFIRE_LIBS) | |
418 | ||
55b57cf6 MT |
419 | tests_libpakfire_execute_SOURCES = \ |
420 | tests/libpakfire/execute.c | |
421 | ||
422 | tests_libpakfire_execute_CPPFLAGS = \ | |
423 | $(TESTSUITE_CPPFLAGS) | |
424 | ||
425 | tests_libpakfire_execute_LDADD = \ | |
426 | $(TESTSUITE_LDADD) \ | |
427 | $(PAKFIRE_LIBS) | |
428 | ||
35ed7247 MT |
429 | tests_libpakfire_key_SOURCES = \ |
430 | tests/libpakfire/key.c \ | |
431 | tests/libpakfire/key.h | |
432 | ||
433 | tests_libpakfire_key_CPPFLAGS = \ | |
434 | $(TESTSUITE_CPPFLAGS) | |
435 | ||
436 | tests_libpakfire_key_LDADD = \ | |
437 | $(TESTSUITE_LDADD) \ | |
438 | $(PAKFIRE_LIBS) | |
439 | ||
b7a1fdad MT |
440 | dist_tests_libpakfire_makefile_SOURCES = \ |
441 | tests/libpakfire/makefile.c | |
442 | ||
443 | tests_libpakfire_makefile_CPPFLAGS = \ | |
444 | $(TESTSUITE_CPPFLAGS) \ | |
445 | -DPAKFIRE_PRIVATE | |
446 | ||
447 | tests_libpakfire_makefile_LDADD = \ | |
448 | $(TESTSUITE_LDADD) \ | |
449 | $(PAKFIRE_LIBS) | |
a46d234a | 450 | |
8da2c139 MT |
451 | dist_tests_libpakfire_packager_SOURCES = \ |
452 | tests/libpakfire/packager.c | |
453 | ||
454 | tests_libpakfire_packager_CPPFLAGS = \ | |
455 | $(TESTSUITE_CPPFLAGS) | |
456 | ||
457 | tests_libpakfire_packager_LDADD = \ | |
458 | $(TESTSUITE_LDADD) \ | |
459 | $(PAKFIRE_LIBS) | |
460 | ||
8d687eaa MT |
461 | dist_tests_libpakfire_parser_SOURCES = \ |
462 | tests/libpakfire/parser.c | |
463 | ||
464 | tests_libpakfire_parser_CPPFLAGS = \ | |
465 | $(TESTSUITE_CPPFLAGS) | |
466 | ||
467 | tests_libpakfire_parser_LDADD = \ | |
468 | $(TESTSUITE_LDADD) \ | |
469 | $(PAKFIRE_LIBS) | |
470 | ||
b9888230 MT |
471 | dist_tests_libpakfire_repo_SOURCES = \ |
472 | tests/libpakfire/repo.c | |
473 | ||
474 | tests_libpakfire_repo_CPPFLAGS = \ | |
475 | $(TESTSUITE_CPPFLAGS) | |
476 | ||
477 | tests_libpakfire_repo_LDADD = \ | |
478 | $(TESTSUITE_LDADD) \ | |
479 | $(PAKFIRE_LIBS) | |
480 | ||
e1392437 MT |
481 | dist_tests_libpakfire_util_SOURCES = \ |
482 | tests/libpakfire/util.c | |
483 | ||
484 | tests_libpakfire_util_CPPFLAGS = \ | |
485 | $(TESTSUITE_CPPFLAGS) | |
486 | ||
487 | tests_libpakfire_util_LDADD = \ | |
488 | $(TESTSUITE_LDADD) \ | |
489 | $(PAKFIRE_LIBS) | |
490 | ||
221cc3ce MT |
491 | # ------------------------------------------------------------------------------ |
492 | ||
b55979b4 MT |
493 | lib_LTLIBRARIES += \ |
494 | libpakfire_preload.la | |
495 | ||
496 | libpakfire_preload_la_SOURCES = \ | |
497 | src/libpakfire_preload/uname.c | |
498 | ||
499 | libpakfire_preload_la_LDFLAGS = \ | |
500 | $(AM_LDFLAGS) \ | |
501 | -shared \ | |
502 | -module \ | |
503 | -avoid-version | |
504 | ||
505 | libpakfire_preload_la_LIBADD = \ | |
506 | $(DL_LIBS) | |
507 | ||
508 | # ------------------------------------------------------------------------------ | |
509 | ||
b55979b4 MT |
510 | scripts_SCRIPTS = \ |
511 | src/scripts/extract-debuginfo \ | |
512 | src/scripts/quality-agent | |
513 | ||
514 | EXTRA_DIST += \ | |
515 | src/scripts/extract-debuginfo.in \ | |
516 | src/scripts/quality-agent.in | |
517 | ||
518 | CLEANFILES += \ | |
519 | src/scripts/extract-debuginfo \ | |
520 | src/scripts/quality-agent | |
521 | ||
522 | dist_scripts_SCRIPTS = \ | |
523 | src/scripts/chroot-shell \ | |
524 | src/scripts/cleanup \ | |
525 | src/scripts/compress-man-pages \ | |
526 | src/scripts/find-common \ | |
527 | src/scripts/find-prerequires \ | |
528 | src/scripts/find-provides \ | |
529 | src/scripts/find-requires \ | |
530 | src/scripts/patch \ | |
531 | src/scripts/perl.prov \ | |
532 | src/scripts/perl.req \ | |
533 | src/scripts/py-compile \ | |
534 | src/scripts/remove-static-libs | |
535 | ||
536 | dist_scripts_DATA = \ | |
537 | src/scripts/functions-common \ | |
538 | src/scripts/functions-constants \ | |
539 | src/scripts/functions-directories \ | |
540 | src/scripts/functions-files \ | |
541 | src/scripts/functions-lists \ | |
542 | src/scripts/functions-logging | |
543 | ||
544 | # ------------------------------------------------------------------------------ | |
545 | ||
546 | dist_qualityagent_SCRIPTS = \ | |
547 | src/quality-agent/001-include-files \ | |
548 | src/quality-agent/001-remove-info-files \ | |
549 | src/quality-agent/001-unsafe-files \ | |
550 | src/quality-agent/002-bad-symlinks \ | |
551 | src/quality-agent/003-libs-location \ | |
552 | src/quality-agent/050-canary \ | |
553 | src/quality-agent/050-execstacks \ | |
554 | src/quality-agent/050-invalid-interpreters \ | |
555 | src/quality-agent/050-libs-needed \ | |
556 | src/quality-agent/050-libs-soname \ | |
557 | src/quality-agent/050-libs-x86_64 \ | |
558 | src/quality-agent/050-nx \ | |
559 | src/quality-agent/050-relro \ | |
560 | src/quality-agent/050-rpaths \ | |
561 | src/quality-agent/095-directory-layout | |
562 | ||
563 | dist_qualityagent_DATA = \ | |
564 | src/quality-agent/qa-include | |
565 | ||
566 | # ------------------------------------------------------------------------------ | |
567 | ||
568 | dist_macros_DATA = \ | |
569 | macros/arch.macro \ | |
570 | macros/build.macro \ | |
571 | macros/cflags.macro \ | |
572 | macros/constants.macro \ | |
573 | macros/package-default.macro \ | |
574 | macros/perl.macro \ | |
575 | macros/python.macro \ | |
576 | macros/quality-agent.macro \ | |
577 | macros/systemd.macro \ | |
578 | macros/templates.macro | |
579 | ||
580 | # ------------------------------------------------------------------------------ | |
581 | ||
582 | if HAVE_SYSTEMD | |
583 | systemdsystemunit_DATA = \ | |
584 | src/systemd/pakfire-daemon.service | |
585 | ||
586 | EXTRA_DIST += \ | |
587 | src/systemd/pakfire-daemon.service.in | |
588 | ||
589 | CLEANFILES += \ | |
590 | src/systemd/pakfire-daemon.service | |
591 | endif | |
592 | ||
593 | # ------------------------------------------------------------------------------ | |
594 | ||
595 | dist_configs_DATA = \ | |
596 | contrib/config/builder.conf \ | |
597 | contrib/config/client.conf \ | |
598 | contrib/config/daemon.conf \ | |
599 | contrib/config/general.conf | |
600 | ||
601 | dist_configsdistros_DATA = \ | |
602 | contrib/config/distros/ipfire3.conf | |
603 | ||
604 | # ------------------------------------------------------------------------------ | |
605 | ||
606 | substitutions = \ | |
607 | '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ | |
608 | '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ | |
609 | '|bindir=$(bindir)|' \ | |
610 | '|libexecdir=$(libexecdir)|' \ | |
611 | '|qualityagentdir=$(qualityagentdir)|' | |
612 | ||
613 | SED_PROCESS = \ | |
614 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
615 | $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ | |
616 | < $< > $@ | |
617 | ||
618 | src/scripts/%: src/scripts/%.in Makefile | |
619 | $(SED_PROCESS) | |
620 | ||
621 | src/systemd/%: src/systemd/%.in Makefile | |
622 | $(SED_PROCESS) | |
db5396bb MT |
623 | |
624 | # - testsuite ------------------------------------------------------------------ | |
625 | ||
7b463f34 MT |
626 | check_LTLIBRARIES = \ |
627 | tests/libtestsuite.la | |
628 | ||
629 | tests_libtestsuite_la_SOURCES = \ | |
630 | tests/testsuite.c \ | |
631 | tests/testsuite.h | |
632 | ||
4250f96b MT |
633 | tests_libtestsuite_la_CPPFLAGS = \ |
634 | $(TESTSUITE_CPPFLAGS) \ | |
3e936d67 MT |
635 | -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \ |
636 | -DTEST_ROOTFS=\"$(TEST_ROOTFS)\" | |
4250f96b | 637 | |
7b463f34 MT |
638 | TESTSUITE_CPPFLAGS = \ |
639 | $(AM_CPPFLAGS) \ | |
640 | $(PAKFIRE_CPPFLAGS) | |
641 | ||
642 | TESTSUITE_LDADD = \ | |
643 | tests/libtestsuite.la | |
644 | ||
db5396bb | 645 | TESTS_ENVIRONMENT = \ |
b793862a | 646 | TEST_DATA_DIR="$(abs_top_srcdir)/tests/data" \ |
f06095f1 | 647 | PAKFIRE_LOG=debug \ |
db5396bb MT |
648 | PYTHONPATH="$(top_srcdir)/.libs:$(top_srcdir)/src" \ |
649 | topdir="$(shell pwd)" | |
650 | ||
77511b48 | 651 | dist_check_SCRIPTS = \ |
ab7f3f2b | 652 | tests/python/cgroups.py \ |
0b95b06f | 653 | tests/python/execute.py \ |
40f17018 | 654 | tests/python/parser.py \ |
77511b48 | 655 | tests/python/test.py |
db5396bb MT |
656 | |
657 | TESTS = \ | |
7b463f34 MT |
658 | $(check_PROGRAMS) \ |
659 | $(dist_check_SCRIPTS) | |
134b2757 MT |
660 | |
661 | # Some test data to run tests | |
662 | EXTRA_DIST += \ | |
663 | tests/data/726D8B0B0889B04E.key \ | |
2caf2a8c MT |
664 | tests/data/beep-1.3-2.ip3.x86_64.pfm \ |
665 | \ | |
d6a88c88 MT |
666 | tests/data/beep.nm \ |
667 | tests/data/kernel.nm \ | |
668 | \ | |
2caf2a8c | 669 | tests/data/parser/test-comments.txt \ |
aff85bdb | 670 | tests/data/parser/test-conditionals.txt \ |
aed19891 | 671 | tests/data/parser/test-declarations.txt \ |
36446af0 MT |
672 | tests/data/parser/test-subparsers.txt \ |
673 | tests/data/parser/perl.info | |
3e936d67 MT |
674 | |
675 | .PHONY: clean-local-check | |
676 | clean-local-check: | |
6dbda957 | 677 | -rm -rf $(TEST_ROOTFS)/* |