]> git.ipfire.org Git - pbs.git/blame - Makefile.am
repos: update: Remove skip_depcheck flag which is not used
[pbs.git] / Makefile.am
CommitLineData
7c17bfff
MT
1###############################################################################
2# #
3# Pakfire - The IPFire package management system #
4# Copyright (C) 2017 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
21ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
22AM_MAKEFLAGS = --no-print-directory
23AUTOMAKE_OPTIONS = color-tests
24
25# remove target it the command fails
26.DELETE_ON_ERROR:
27
28# keep itermediate files
29.SECONDARY:
30
31SUBDIRS = . po
32
33pythondir = $(pyexecdir)/pakfire
34
35configsdir = $(sysconfdir)/pakfire
09656f14 36crondir = $(sysconfdir)/cron.d
7c17bfff 37
3e8c8603 38BUILT_SOURCES =
7c17bfff
MT
39CLEANFILES =
40DISTCLEANFILES =
41EXTRA_DIST =
42INSTALL_DIRS =
43noinst_DATA =
44
45@INTLTOOL_POLICY_RULE@
46
47.PHONY: update-po
eb80d9fa 48update-po: po/POTFILES.in
7c17bfff
MT
49 $(MAKE) -C po update-po
50
eb80d9fa
MT
51po/POTFILES.in: Makefile
52 find $(abs_srcdir)/src -not -path "$(abs_srcdir)/src/third-party/*" | \
53 grep -E "\.(html|py|txt)(\.in)?$$" | \
54 sed -e "s@$(abs_srcdir)/@@g" | \
55 LC_COLLATE=C sort > $@
56
7c17bfff
MT
57DISTCHECK_CONFIGURE_FLAGS = \
58 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
59
60# ------------------------------------------------------------------------------
61
62AM_V_XSLT = $(AM_V_XSLT_$(V))
63AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
64AM_V_XSLT_0 = @echo " XSLT " $@;
65
66# ------------------------------------------------------------------------------
67
68dist_doc_DATA = \
d3e7a9fb
MT
69 COPYING \
70 README
7c17bfff
MT
71
72# ------------------------------------------------------------------------------
73
74dist_bin_SCRIPTS = \
43025dca 75 src/scripts/pakfire-build-service \
7c17bfff
MT
76 src/scripts/pakfire-web
77
78dist_configs_DATA = \
79 pbs.conf.sample
80
81buildservice_PYTHON = \
455cd7d1
MT
82 src/buildservice/__init__.py \
83 src/buildservice/__version__.py \
316268ce 84 src/buildservice/aws.py \
7c17bfff
MT
85 src/buildservice/base.py \
86 src/buildservice/bugtracker.py \
87 src/buildservice/builders.py \
88 src/buildservice/builds.py \
89 src/buildservice/cache.py \
028b2057 90 src/buildservice/config.py \
7c17bfff
MT
91 src/buildservice/constants.py \
92 src/buildservice/database.py \
012035e0 93 src/buildservice/decorators.py \
7c17bfff 94 src/buildservice/distribution.py \
64991f9f 95 src/buildservice/errors.py \
0fb1e800 96 src/buildservice/events.py \
c162004b 97 src/buildservice/httpclient.py \
2a1e9ce2 98 src/buildservice/jobs.py \
7c17bfff 99 src/buildservice/keys.py \
cd142e52 100 src/buildservice/logstreams.py \
7c17bfff
MT
101 src/buildservice/messages.py \
102 src/buildservice/mirrors.py \
103 src/buildservice/misc.py \
104 src/buildservice/packages.py \
3d7f0b67 105 src/buildservice/releasemonitoring.py \
7c17bfff 106 src/buildservice/repository.py \
7c17bfff
MT
107 src/buildservice/sessions.py \
108 src/buildservice/settings.py \
109 src/buildservice/sources.py \
7c17bfff
MT
110 src/buildservice/uploads.py \
111 src/buildservice/users.py
112
113buildservicedir = $(pythondir)/buildservice
114
3e8c8603
MT
115BUILT_SOURCES += \
116 src/buildservice/constants.py
117
56cba8c7
MT
118EXTRA_DIST += \
119 src/buildservice/constants.py.in
120
121CLEANFILES += \
122 src/buildservice/constants.py
123
7c17bfff
MT
124web_PYTHON = \
125 src/web/__init__.py \
aa8d5ad3 126 src/web/auth.py \
0919f216 127 src/web/base.py \
df69af71 128 src/web/bugs.py \
eab000f0 129 src/web/builders.py \
98514762 130 src/web/builds.py \
8111065a 131 src/web/distributions.py \
5cf8c7ea 132 src/web/errors.py \
550e7194 133 src/web/events.py \
7c17bfff 134 src/web/handlers.py \
8f6d6505 135 src/web/jobs.py \
f44a3f0d
MT
136 src/web/keys.py \
137 src/web/mirrors.py \
594b420f 138 src/web/monitorings.py \
e71f1b15 139 src/web/packages.py \
ed83541e 140 src/web/repos.py \
b8b310ec 141 src/web/search.py \
ea0a6063 142 src/web/sources.py \
fd902c1e 143 src/web/ui_modules.py \
f062b044 144 src/web/uploads.py \
156b826e 145 src/web/users.py
7c17bfff
MT
146
147webdir = $(buildservicedir)/web
148
149# ------------------------------------------------------------------------------
150
151dist_templates_DATA = \
7c17bfff 152 src/templates/base.html \
7c17bfff 153 src/templates/index.html \
7c17bfff
MT
154 src/templates/log.html \
155 src/templates/login.html \
9882803a 156 src/templates/modal.html \
d238f240 157 src/templates/search.html
7c17bfff
MT
158
159templatesdir = $(datadir)/templates
160
df69af71
MT
161templates_bugsdir = $(templatesdir)/bugs
162
163dist_templates_bugs_modules_DATA = \
164 src/templates/bugs/modules/list.html
165
166templates_bugs_modulesdir = $(templates_bugsdir)/modules
167
7c17bfff
MT
168dist_templates_builders_DATA = \
169 src/templates/builders/delete.html \
170 src/templates/builders/detail.html \
171 src/templates/builders/edit.html \
172 src/templates/builders/list.html \
17cfc785 173 src/templates/builders/new.html
7c17bfff
MT
174
175templates_buildersdir = $(templatesdir)/builders
176
e04bc130
MT
177dist_templates_builders_modules_DATA = \
178 src/templates/builders/modules/stats.html
179
180templates_builders_modulesdir = $(templates_buildersdir)/modules
181
7c17bfff 182dist_templates_builds_DATA = \
fd44f0a9
MT
183 src/templates/builds/bug.html \
184 src/templates/builds/bug-created.html \
9e2b040d 185 src/templates/builds/clone.html \
93b7ce5f 186 src/templates/builds/delete.html \
75f80d94 187 src/templates/builds/index.html \
e415710b 188 src/templates/builds/queue.html \
f7bc5fb1 189 src/templates/builds/show.html
7c17bfff
MT
190
191templates_buildsdir = $(templatesdir)/builds
192
ccae1b76
MT
193dist_templates_builds_groups_DATA = \
194 src/templates/builds/groups/show.html
195
548cc46a
MT
196templates_builds_groupsdir = $(templates_buildsdir)/groups
197
198dist_templates_builds_groups_modules_DATA = \
199 src/templates/builds/groups/modules/list.html
200
201templates_builds_groups_modulesdir = $(templates_builds_groupsdir)/modules
202
72dae6ea 203dist_templates_builds_messages_DATA = \
9a83e901
MT
204 src/templates/builds/messages/comment.txt \
205 src/templates/builds/messages/failed.txt \
36edcaae
MT
206 src/templates/builds/messages/finished.txt \
207 src/templates/builds/messages/test-builds-failed.txt
72dae6ea
MT
208
209templates_builds_messagesdir = $(templates_buildsdir)/messages
210
79a4d9b2 211dist_templates_builds_modules_DATA = \
d542b33c
MT
212 src/templates/builds/modules/list.html \
213 src/templates/builds/modules/watchers.html
79a4d9b2
MT
214
215templates_builds_modulesdir = $(templates_buildsdir)/modules
216
5ff12a44 217dist_templates_builds_repos_DATA = \
4d27c302
MT
218 src/templates/builds/repos/add.html \
219 src/templates/builds/repos/remove.html
5ff12a44
MT
220
221templates_builds_reposdir = $(templates_buildsdir)/repos
222
5c833b1c 223dist_templates_distros_DATA = \
b5601528 224 src/templates/distros/edit.html \
9342fbce
MT
225 src/templates/distros/index.html \
226 src/templates/distros/show.html
5c833b1c
MT
227
228templates_distrosdir = $(templatesdir)/distros
229
5153597e
MT
230dist_templates_distros_modules_DATA = \
231 src/templates/distros/modules/list.html
232
233templates_distros_modulesdir = $(templates_distrosdir)/modules
234
594b420f 235dist_templates_monitorings_DATA = \
91d9818d
MT
236 src/templates/monitorings/delete.html \
237 src/templates/monitorings/edit.html \
594b420f
MT
238 src/templates/monitorings/show.html
239
240templates_monitoringsdir = $(templatesdir)/monitorings
241
242dist_templates_monitorings_modules_DATA = \
243 src/templates/monitorings/modules/releases-list.html
244
245templates_monitorings_modulesdir = $(templates_monitoringsdir)/modules
246
7c17bfff 247dist_templates_errors_DATA = \
7ec8e0d3 248 src/templates/errors/error.html
7c17bfff
MT
249
250templates_errorsdir = $(templatesdir)/errors
251
550e7194
MT
252templates_eventsdir = $(templatesdir)/events
253
254dist_templates_events_modules_DATA = \
255 src/templates/events/modules/list.html \
6f76c9f8 256 src/templates/events/modules/build-comment.html \
550e7194
MT
257 src/templates/events/modules/system-message.html \
258 src/templates/events/modules/user-message.html
259
260templates_events_modulesdir = $(templates_eventsdir)/modules
261
660ef718 262dist_templates_jobs_DATA = \
cd142e52 263 src/templates/jobs/abort.html \
f66d485f
MT
264 src/templates/jobs/log-stream.html \
265 src/templates/jobs/retry.html
660ef718 266
558b95bd
MT
267templates_jobsdir = $(templatesdir)/jobs
268
269dist_templates_jobs_messages_DATA = \
270 src/templates/jobs/messages/failed.txt
271
272templates_jobs_messagesdir = $(templates_jobsdir)/messages
273
1ef8936f 274dist_templates_jobs_modules_DATA = \
cd142e52
MT
275 src/templates/jobs/modules/list.html \
276 src/templates/jobs/modules/log-stream.html
1ef8936f
MT
277
278templates_jobs_modulesdir = $(templates_jobsdir)/modules
279
68dd077d
MT
280templates_messagesdir = $(templatesdir)/messages
281
d72a55be
MT
282dist_templates_mirrors_DATA = \
283 src/templates/mirrors/delete.html \
d72a55be 284 src/templates/mirrors/edit.html \
1523bc41
MT
285 src/templates/mirrors/index.html \
286 src/templates/mirrors/show.html
d72a55be
MT
287
288templates_mirrorsdir = $(templatesdir)/mirrors
289
1523bc41
MT
290dist_templates_mirrors_modules_DATA = \
291 src/templates/mirrors/modules/list.html
292
293templates_mirrors_modulesdir = $(templates_mirrorsdir)/modules
294
7c17bfff 295dist_templates_modules_DATA = \
7c17bfff 296 src/templates/modules/commits-table.html \
c6e799b4 297 src/templates/modules/commit-message.html \
8dc6f5a4 298 src/templates/modules/link-to-user.html \
7c17bfff 299 src/templates/modules/packages-files-table.html \
dc8a8ee7
MT
300 src/templates/modules/source-table.html \
301 src/templates/modules/text.html
7c17bfff
MT
302
303templates_modulesdir = $(templatesdir)/modules
304
b32e8958 305dist_templates_repos_DATA = \
98ee6714 306 src/templates/repos/create-custom.html \
b32e8958 307 src/templates/repos/builds.html \
0bcebf53 308 src/templates/repos/edit.html \
b32e8958
MT
309 src/templates/repos/show.html
310
ed83541e
MT
311templates_reposdir = $(templatesdir)/repos
312
313dist_templates_repos_modules_DATA = \
314 src/templates/repos/modules/list.html
315
316templates_repos_modulesdir = $(templates_reposdir)/modules
317
ea0a6063
MT
318dist_templates_sources_DATA = \
319 src/templates/sources/show.html
320
321templates_sourcesdir = $(templatesdir)/sources
322
323dist_templates_sources_modules_DATA = \
9826b58c 324 src/templates/sources/modules/commits.html \
ea0a6063
MT
325 src/templates/sources/modules/list.html
326
327templates_sources_modulesdir = $(templates_sourcesdir)/modules
328
7c17bfff 329dist_templates_packages_DATA = \
b5800237 330 src/templates/packages/index.html \
a6d71759 331 src/templates/packages/name.html \
d9f76034 332 src/templates/packages/show.html \
7c17bfff
MT
333 src/templates/packages/view-file.html
334
335templates_packagesdir = $(templatesdir)/packages
336
d9f76034 337dist_templates_packages_modules_DATA = \
66a6e7db 338 src/templates/packages/modules/dependencies.html \
d9f76034
MT
339 src/templates/packages/modules/info.html
340
341templates_packages_modulesdir = $(templates_packagesdir)/modules
342
5fc0715d 343dist_templates_users_DATA = \
6c41a6f6 344 src/templates/users/delete.html \
631ca6d8 345 src/templates/users/edit.html \
57718fd9 346 src/templates/users/index.html \
d48f75f7
MT
347 src/templates/users/show.html \
348 src/templates/users/subscribe.html
5fc0715d
MT
349
350templates_usersdir = $(templatesdir)/users
351
18132fad
MT
352dist_templates_users_messages_DATA = \
353 src/templates/users/messages/welcome.txt
354
355templates_users_messagesdir = $(templates_usersdir)/messages
356
57718fd9 357dist_templates_users_modules_DATA = \
d48f75f7
MT
358 src/templates/users/modules/list.html \
359 src/templates/users/modules/push-subscribe-button.html
57718fd9
MT
360
361templates_users_modulesdir = $(templates_usersdir)/modules
362
7c17bfff
MT
363# ------------------------------------------------------------------------------
364#
365dist_static_DATA = \
366 src/static/favicon.ico \
367 src/static/robots.txt
368
369staticdir = $(datadir)/static
370
ee08328e
MT
371static_css_DATA = \
372 src/static/css/site.css
7c17bfff
MT
373
374static_cssdir = $(staticdir)/css
375
ee08328e
MT
376EXTRA_DIST += \
377 src/static/css/_fonts.scss \
85cd4dbd 378 src/static/css/_icons.scss \
ee08328e
MT
379 src/static/css/site.scss
380
381CLEANFILES += \
382 src/static/css/site.css
383
ee08328e 384static_js_DATA = \
e04bc130 385 src/static/js/builders-stats.min.js \
c85a832d 386 src/static/js/jquery.min.js \
cd142e52 387 src/static/js/job-log-stream.min.js \
d48f75f7
MT
388 src/static/js/notification-worker.min.js \
389 src/static/js/pbs.min.js \
390 src/static/js/user-push-subscribe-button.min.js
7c17bfff
MT
391
392static_jsdir = $(staticdir)/js
393
cd142e52 394EXTRA_DIST += \
e04bc130 395 src/static/js/builders-stats.js \
79d42c5d 396 src/static/js/job-log-stream.js \
d48f75f7
MT
397 src/static/js/notification-worker.js \
398 src/static/js/pbs.js \
399 src/static/js/user-push-subscribe-button.js
cd142e52 400
ee08328e 401CLEANFILES += \
79d42c5d 402 $(static_js_DATA)
ee08328e 403
0d995d8d
MT
404dist_static_fonts_DATA = \
405 src/third-party/fonts/prompt/OFL.txt \
406 src/third-party/fonts/prompt/Prompt-Black.ttf \
407 src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \
408 src/third-party/fonts/prompt/Prompt-Bold.ttf \
409 src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \
410 src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \
411 src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \
412 src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \
413 src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \
414 src/third-party/fonts/prompt/Prompt-Italic.ttf \
415 src/third-party/fonts/prompt/Prompt-Light.ttf \
416 src/third-party/fonts/prompt/Prompt-LightItalic.ttf \
417 src/third-party/fonts/prompt/Prompt-Medium.ttf \
418 src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \
419 src/third-party/fonts/prompt/Prompt-Regular.ttf \
420 src/third-party/fonts/prompt/Prompt-SemiBold.ttf \
421 src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \
422 src/third-party/fonts/prompt/Prompt-Thin.ttf \
85cd4dbd
MT
423 src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \
424 src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \
425 src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \
426 src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \
427 src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \
428 src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \
429 src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2
0d995d8d
MT
430
431static_fontsdir = $(staticdir)/fonts
432
7c17bfff
MT
433# ------------------------------------------------------------------------------
434
435if HAVE_SYSTEMD
436systemdsystemunit_DATA = \
2105299c 437 src/systemd/pakfire-web.service
7c17bfff
MT
438
439CLEANFILES += \
440 $(systemdsystemunit_DATA)
441
442INSTALL_DIRS += \
443 $(systemdsystemunitdir)
444endif
445
446EXTRA_DIST += \
2105299c 447 src/systemd/pakfire-web.service.in
7c17bfff
MT
448
449dist_database_DATA = \
450 src/database.sql
451
452databasedir = $(datadir)/database
453
09656f14 454dist_cron_DATA = \
7c17bfff
MT
455 src/crontab/pakfire-build-service
456
d3e7a9fb 457EXTRA_DIST += \
0d897466 458 src/tools/dump-database-schema.sh
d3e7a9fb 459
7c17bfff
MT
460# ------------------------------------------------------------------------------
461
462substitutions = \
463 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
464 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
465 '|configsdir=$(configsdir)|' \
56cba8c7 466 '|bindir=$(bindir)|' \
2b5a3b4d 467 '|datadir=$(datadir)|' \
027a662e
MT
468 '|localedir=$(localedir)|' \
469 '|templatesdir=$(templatesdir)|' \
470 '|staticdir=$(staticdir)|'
7c17bfff
MT
471
472SED_PROCESS = \
473 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
474 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
475 < $< > $@
476
73eadbe5
MT
477UGLIFYJS_PROCESS = \
478 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
479 $(UGLIFYJS) --compress --mangle -- $< > $@
480
7c17bfff
MT
481%: %.in Makefile
482 $(SED_PROCESS)
73eadbe5
MT
483
484%.css: %.scss
485 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
486 $(SASSC) --style compressed $< > $@
487
a2c89f4c
MT
488src/static/css/highlight.css: Makefile
489 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
490 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
491
73eadbe5
MT
492%.min.js: %.js
493 $(UGLIFYJS_PROCESS)
ee08328e 494
67704209
MT
495# ------------------------------------------------------------------------------
496
497TESTS = \
498 $(dist_check_SCRIPTS)
499
500TESTS_ENVIRONMENT = \
501 PYTHONPATH="$(abs_top_srcdir)/src" \
502 abs_top_srcdir="$(abs_top_srcdir)"
503
504dist_check_SCRIPTS = \
f9a38dd2 505 tests/setup.py \
01de82e0 506 tests/build.py \
890486ab 507 tests/builder.py \
5ac581c0 508 tests/distro.py \
18132fad 509 tests/message.py \
4a5f100f 510 tests/package.py \
559967f7
MT
511 tests/repo.py \
512 tests/upload.py
67704209
MT
513
514EXTRA_DIST += \
515 tests/test.py
a9388064
MT
516
517EXTRA_DIST += \
7840cb39 518 tests/data/beep-1.3-2.ip3.src.pfm \
a9388064 519 tests/data/beep-1.3-2.ip3.x86_64.pfm