]> git.ipfire.org Git - pbs.git/blame - Makefile.am
users: Add binary packages to the disk usage
[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 136 src/web/mirrors.py \
594b420f 137 src/web/monitorings.py \
e71f1b15 138 src/web/packages.py \
ed83541e 139 src/web/repos.py \
b8b310ec 140 src/web/search.py \
ea0a6063 141 src/web/sources.py \
fd902c1e 142 src/web/ui_modules.py \
f062b044 143 src/web/uploads.py \
156b826e 144 src/web/users.py
7c17bfff
MT
145
146webdir = $(buildservicedir)/web
147
148# ------------------------------------------------------------------------------
149
150dist_templates_DATA = \
7c17bfff 151 src/templates/base.html \
7c17bfff 152 src/templates/index.html \
7c17bfff
MT
153 src/templates/log.html \
154 src/templates/login.html \
9882803a 155 src/templates/modal.html \
d238f240 156 src/templates/search.html
7c17bfff
MT
157
158templatesdir = $(datadir)/templates
159
df69af71
MT
160templates_bugsdir = $(templatesdir)/bugs
161
162dist_templates_bugs_modules_DATA = \
163 src/templates/bugs/modules/list.html
164
165templates_bugs_modulesdir = $(templates_bugsdir)/modules
166
7c17bfff 167dist_templates_builders_DATA = \
1dd7d3a8 168 src/templates/builders/create.html \
7c17bfff 169 src/templates/builders/delete.html \
7c17bfff 170 src/templates/builders/edit.html \
7e5a1249 171 src/templates/builders/index.html \
75a23d24
MT
172 src/templates/builders/show.html \
173 src/templates/builders/start.html \
174 src/templates/builders/stop.html
7c17bfff
MT
175
176templates_buildersdir = $(templatesdir)/builders
177
e04bc130
MT
178dist_templates_builders_modules_DATA = \
179 src/templates/builders/modules/stats.html
180
181templates_builders_modulesdir = $(templates_buildersdir)/modules
182
7c17bfff 183dist_templates_builds_DATA = \
fd44f0a9
MT
184 src/templates/builds/bug.html \
185 src/templates/builds/bug-created.html \
9e2b040d 186 src/templates/builds/clone.html \
93b7ce5f 187 src/templates/builds/delete.html \
75f80d94 188 src/templates/builds/index.html \
e415710b 189 src/templates/builds/queue.html \
f7bc5fb1 190 src/templates/builds/show.html
7c17bfff
MT
191
192templates_buildsdir = $(templatesdir)/builds
193
ccae1b76
MT
194dist_templates_builds_groups_DATA = \
195 src/templates/builds/groups/show.html
196
548cc46a
MT
197templates_builds_groupsdir = $(templates_buildsdir)/groups
198
199dist_templates_builds_groups_modules_DATA = \
200 src/templates/builds/groups/modules/list.html
201
202templates_builds_groups_modulesdir = $(templates_builds_groupsdir)/modules
203
72dae6ea 204dist_templates_builds_messages_DATA = \
9a83e901
MT
205 src/templates/builds/messages/comment.txt \
206 src/templates/builds/messages/failed.txt \
36edcaae
MT
207 src/templates/builds/messages/finished.txt \
208 src/templates/builds/messages/test-builds-failed.txt
72dae6ea
MT
209
210templates_builds_messagesdir = $(templates_buildsdir)/messages
211
79a4d9b2 212dist_templates_builds_modules_DATA = \
d542b33c
MT
213 src/templates/builds/modules/list.html \
214 src/templates/builds/modules/watchers.html
79a4d9b2
MT
215
216templates_builds_modulesdir = $(templates_buildsdir)/modules
217
5ff12a44 218dist_templates_builds_repos_DATA = \
4d27c302
MT
219 src/templates/builds/repos/add.html \
220 src/templates/builds/repos/remove.html
5ff12a44
MT
221
222templates_builds_reposdir = $(templates_buildsdir)/repos
223
5c833b1c 224dist_templates_distros_DATA = \
b5601528 225 src/templates/distros/edit.html \
9342fbce
MT
226 src/templates/distros/index.html \
227 src/templates/distros/show.html
5c833b1c
MT
228
229templates_distrosdir = $(templatesdir)/distros
230
5153597e
MT
231dist_templates_distros_modules_DATA = \
232 src/templates/distros/modules/list.html
233
234templates_distros_modulesdir = $(templates_distrosdir)/modules
235
594b420f 236dist_templates_monitorings_DATA = \
91d9818d
MT
237 src/templates/monitorings/delete.html \
238 src/templates/monitorings/edit.html \
594b420f
MT
239 src/templates/monitorings/show.html
240
241templates_monitoringsdir = $(templatesdir)/monitorings
242
243dist_templates_monitorings_modules_DATA = \
244 src/templates/monitorings/modules/releases-list.html
245
246templates_monitorings_modulesdir = $(templates_monitoringsdir)/modules
247
7c17bfff 248dist_templates_errors_DATA = \
7ec8e0d3 249 src/templates/errors/error.html
7c17bfff
MT
250
251templates_errorsdir = $(templatesdir)/errors
252
550e7194
MT
253templates_eventsdir = $(templatesdir)/events
254
255dist_templates_events_modules_DATA = \
256 src/templates/events/modules/list.html \
6f76c9f8 257 src/templates/events/modules/build-comment.html \
550e7194
MT
258 src/templates/events/modules/system-message.html \
259 src/templates/events/modules/user-message.html
260
261templates_events_modulesdir = $(templates_eventsdir)/modules
262
660ef718 263dist_templates_jobs_DATA = \
cd142e52 264 src/templates/jobs/abort.html \
f66d485f
MT
265 src/templates/jobs/log-stream.html \
266 src/templates/jobs/retry.html
660ef718 267
558b95bd
MT
268templates_jobsdir = $(templatesdir)/jobs
269
270dist_templates_jobs_messages_DATA = \
271 src/templates/jobs/messages/failed.txt
272
273templates_jobs_messagesdir = $(templates_jobsdir)/messages
274
1ef8936f 275dist_templates_jobs_modules_DATA = \
cd142e52
MT
276 src/templates/jobs/modules/list.html \
277 src/templates/jobs/modules/log-stream.html
1ef8936f
MT
278
279templates_jobs_modulesdir = $(templates_jobsdir)/modules
280
68dd077d
MT
281templates_messagesdir = $(templatesdir)/messages
282
d72a55be
MT
283dist_templates_mirrors_DATA = \
284 src/templates/mirrors/delete.html \
d72a55be 285 src/templates/mirrors/edit.html \
1523bc41
MT
286 src/templates/mirrors/index.html \
287 src/templates/mirrors/show.html
d72a55be
MT
288
289templates_mirrorsdir = $(templatesdir)/mirrors
290
1523bc41
MT
291dist_templates_mirrors_modules_DATA = \
292 src/templates/mirrors/modules/list.html
293
294templates_mirrors_modulesdir = $(templates_mirrorsdir)/modules
295
7c17bfff 296dist_templates_modules_DATA = \
7c17bfff 297 src/templates/modules/commits-table.html \
c6e799b4 298 src/templates/modules/commit-message.html \
8dc6f5a4 299 src/templates/modules/link-to-user.html \
7c17bfff 300 src/templates/modules/packages-files-table.html \
dc8a8ee7
MT
301 src/templates/modules/source-table.html \
302 src/templates/modules/text.html
7c17bfff
MT
303
304templates_modulesdir = $(templatesdir)/modules
305
b32e8958 306dist_templates_repos_DATA = \
98ee6714 307 src/templates/repos/create-custom.html \
b32e8958 308 src/templates/repos/builds.html \
05db2aeb 309 src/templates/repos/delete.html \
0bcebf53 310 src/templates/repos/edit.html \
b32e8958
MT
311 src/templates/repos/show.html
312
ed83541e
MT
313templates_reposdir = $(templatesdir)/repos
314
315dist_templates_repos_modules_DATA = \
316 src/templates/repos/modules/list.html
317
318templates_repos_modulesdir = $(templates_reposdir)/modules
319
ea0a6063
MT
320dist_templates_sources_DATA = \
321 src/templates/sources/show.html
322
323templates_sourcesdir = $(templatesdir)/sources
324
325dist_templates_sources_modules_DATA = \
9826b58c 326 src/templates/sources/modules/commits.html \
ea0a6063
MT
327 src/templates/sources/modules/list.html
328
329templates_sources_modulesdir = $(templates_sourcesdir)/modules
330
7c17bfff 331dist_templates_packages_DATA = \
b5800237 332 src/templates/packages/index.html \
d9f76034 333 src/templates/packages/show.html \
7c17bfff
MT
334 src/templates/packages/view-file.html
335
336templates_packagesdir = $(templatesdir)/packages
337
d9f76034 338dist_templates_packages_modules_DATA = \
66a6e7db 339 src/templates/packages/modules/dependencies.html \
d9f76034
MT
340 src/templates/packages/modules/info.html
341
342templates_packages_modulesdir = $(templates_packagesdir)/modules
343
0e794d55 344dist_templates_packages_name_DATA = \
a3e946d8 345 src/templates/packages/name/builds.html \
0e794d55
MT
346 src/templates/packages/name/index.html
347
348templates_packages_namedir = $(templates_packagesdir)/name
349
5fc0715d 350dist_templates_users_DATA = \
6c41a6f6 351 src/templates/users/delete.html \
631ca6d8 352 src/templates/users/edit.html \
57718fd9 353 src/templates/users/index.html \
d48f75f7
MT
354 src/templates/users/show.html \
355 src/templates/users/subscribe.html
5fc0715d
MT
356
357templates_usersdir = $(templatesdir)/users
358
18132fad
MT
359dist_templates_users_messages_DATA = \
360 src/templates/users/messages/welcome.txt
361
362templates_users_messagesdir = $(templates_usersdir)/messages
363
57718fd9 364dist_templates_users_modules_DATA = \
d48f75f7
MT
365 src/templates/users/modules/list.html \
366 src/templates/users/modules/push-subscribe-button.html
57718fd9
MT
367
368templates_users_modulesdir = $(templates_usersdir)/modules
369
7c17bfff
MT
370# ------------------------------------------------------------------------------
371#
372dist_static_DATA = \
373 src/static/favicon.ico \
374 src/static/robots.txt
375
376staticdir = $(datadir)/static
377
ee08328e
MT
378static_css_DATA = \
379 src/static/css/site.css
7c17bfff
MT
380
381static_cssdir = $(staticdir)/css
382
ee08328e
MT
383EXTRA_DIST += \
384 src/static/css/_fonts.scss \
85cd4dbd 385 src/static/css/_icons.scss \
ee08328e
MT
386 src/static/css/site.scss
387
388CLEANFILES += \
389 src/static/css/site.css
390
ee08328e 391static_js_DATA = \
e04bc130 392 src/static/js/builders-stats.min.js \
c85a832d 393 src/static/js/jquery.min.js \
cd142e52 394 src/static/js/job-log-stream.min.js \
d48f75f7
MT
395 src/static/js/notification-worker.min.js \
396 src/static/js/pbs.min.js \
397 src/static/js/user-push-subscribe-button.min.js
7c17bfff
MT
398
399static_jsdir = $(staticdir)/js
400
cd142e52 401EXTRA_DIST += \
e04bc130 402 src/static/js/builders-stats.js \
79d42c5d 403 src/static/js/job-log-stream.js \
d48f75f7
MT
404 src/static/js/notification-worker.js \
405 src/static/js/pbs.js \
406 src/static/js/user-push-subscribe-button.js
cd142e52 407
ee08328e 408CLEANFILES += \
79d42c5d 409 $(static_js_DATA)
ee08328e 410
0d995d8d
MT
411dist_static_fonts_DATA = \
412 src/third-party/fonts/prompt/OFL.txt \
413 src/third-party/fonts/prompt/Prompt-Black.ttf \
414 src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \
415 src/third-party/fonts/prompt/Prompt-Bold.ttf \
416 src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \
417 src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \
418 src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \
419 src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \
420 src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \
421 src/third-party/fonts/prompt/Prompt-Italic.ttf \
422 src/third-party/fonts/prompt/Prompt-Light.ttf \
423 src/third-party/fonts/prompt/Prompt-LightItalic.ttf \
424 src/third-party/fonts/prompt/Prompt-Medium.ttf \
425 src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \
426 src/third-party/fonts/prompt/Prompt-Regular.ttf \
427 src/third-party/fonts/prompt/Prompt-SemiBold.ttf \
428 src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \
429 src/third-party/fonts/prompt/Prompt-Thin.ttf \
85cd4dbd
MT
430 src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \
431 src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \
432 src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \
433 src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \
434 src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \
435 src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \
436 src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2
0d995d8d
MT
437
438static_fontsdir = $(staticdir)/fonts
439
7c17bfff
MT
440# ------------------------------------------------------------------------------
441
442if HAVE_SYSTEMD
443systemdsystemunit_DATA = \
2105299c 444 src/systemd/pakfire-web.service
7c17bfff
MT
445
446CLEANFILES += \
447 $(systemdsystemunit_DATA)
448
449INSTALL_DIRS += \
450 $(systemdsystemunitdir)
451endif
452
453EXTRA_DIST += \
2105299c 454 src/systemd/pakfire-web.service.in
7c17bfff
MT
455
456dist_database_DATA = \
457 src/database.sql
458
459databasedir = $(datadir)/database
460
09656f14 461dist_cron_DATA = \
7c17bfff
MT
462 src/crontab/pakfire-build-service
463
d3e7a9fb 464EXTRA_DIST += \
0d897466 465 src/tools/dump-database-schema.sh
d3e7a9fb 466
7c17bfff
MT
467# ------------------------------------------------------------------------------
468
469substitutions = \
470 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
471 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
472 '|configsdir=$(configsdir)|' \
56cba8c7 473 '|bindir=$(bindir)|' \
2b5a3b4d 474 '|datadir=$(datadir)|' \
027a662e
MT
475 '|localedir=$(localedir)|' \
476 '|templatesdir=$(templatesdir)|' \
477 '|staticdir=$(staticdir)|'
7c17bfff
MT
478
479SED_PROCESS = \
480 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
481 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
482 < $< > $@
483
73eadbe5
MT
484UGLIFYJS_PROCESS = \
485 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
486 $(UGLIFYJS) --compress --mangle -- $< > $@
487
7c17bfff
MT
488%: %.in Makefile
489 $(SED_PROCESS)
73eadbe5
MT
490
491%.css: %.scss
492 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
493 $(SASSC) --style compressed $< > $@
494
a2c89f4c
MT
495src/static/css/highlight.css: Makefile
496 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
497 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
498
73eadbe5
MT
499%.min.js: %.js
500 $(UGLIFYJS_PROCESS)
ee08328e 501
67704209
MT
502# ------------------------------------------------------------------------------
503
504TESTS = \
505 $(dist_check_SCRIPTS)
506
507TESTS_ENVIRONMENT = \
508 PYTHONPATH="$(abs_top_srcdir)/src" \
509 abs_top_srcdir="$(abs_top_srcdir)"
510
511dist_check_SCRIPTS = \
f9a38dd2 512 tests/setup.py \
01de82e0 513 tests/build.py \
890486ab 514 tests/builder.py \
5ac581c0 515 tests/distro.py \
18132fad 516 tests/message.py \
4a5f100f 517 tests/package.py \
559967f7
MT
518 tests/repo.py \
519 tests/upload.py
67704209
MT
520
521EXTRA_DIST += \
522 tests/test.py
a9388064
MT
523
524EXTRA_DIST += \
7840cb39 525 tests/data/beep-1.3-2.ip3.src.pfm \
a9388064 526 tests/data/beep-1.3-2.ip3.x86_64.pfm