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