]> git.ipfire.org Git - pbs.git/blame - Makefile.am
bootstrap4: add forgotten changes in Makfile and Potfile
[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
36
3e8c8603 37BUILT_SOURCES =
7c17bfff
MT
38CLEANFILES =
39DISTCLEANFILES =
40EXTRA_DIST =
41INSTALL_DIRS =
42noinst_DATA =
43
44@INTLTOOL_POLICY_RULE@
45
46.PHONY: update-po
47update-po:
48 $(MAKE) -C po update-po
49
50DISTCHECK_CONFIGURE_FLAGS = \
51 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
52
53# ------------------------------------------------------------------------------
54
55AM_V_XSLT = $(AM_V_XSLT_$(V))
56AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
57AM_V_XSLT_0 = @echo " XSLT " $@;
58
59# ------------------------------------------------------------------------------
60
61dist_doc_DATA = \
d3e7a9fb
MT
62 COPYING \
63 README
7c17bfff
MT
64
65# ------------------------------------------------------------------------------
66
67dist_bin_SCRIPTS = \
43025dca 68 src/scripts/pakfire-build-service \
7c17bfff 69 src/scripts/pakfire-hub \
7c17bfff
MT
70 src/scripts/pakfire-web
71
72dist_configs_DATA = \
73 pbs.conf.sample
74
75buildservice_PYTHON = \
455cd7d1
MT
76 src/buildservice/__init__.py \
77 src/buildservice/__version__.py \
7c17bfff
MT
78 src/buildservice/arches.py \
79 src/buildservice/base.py \
80 src/buildservice/bugtracker.py \
81 src/buildservice/builders.py \
82 src/buildservice/builds.py \
83 src/buildservice/cache.py \
84 src/buildservice/constants.py \
85 src/buildservice/database.py \
012035e0 86 src/buildservice/decorators.py \
7c17bfff 87 src/buildservice/distribution.py \
d3e7a9fb 88 src/buildservice/geoip.py \
7c17bfff 89 src/buildservice/git.py \
fd43d5e1 90 src/buildservice/jobqueue.py \
2a1e9ce2 91 src/buildservice/jobs.py \
7c17bfff 92 src/buildservice/keys.py \
b7debe9f 93 src/buildservice/ldap.py \
7c17bfff 94 src/buildservice/logs.py \
7c17bfff
MT
95 src/buildservice/messages.py \
96 src/buildservice/mirrors.py \
97 src/buildservice/misc.py \
98 src/buildservice/packages.py \
99 src/buildservice/repository.py \
7c17bfff
MT
100 src/buildservice/sessions.py \
101 src/buildservice/settings.py \
102 src/buildservice/sources.py \
103 src/buildservice/updates.py \
104 src/buildservice/uploads.py \
105 src/buildservice/users.py
106
107buildservicedir = $(pythondir)/buildservice
108
3e8c8603
MT
109BUILT_SOURCES += \
110 src/buildservice/constants.py
111
56cba8c7
MT
112EXTRA_DIST += \
113 src/buildservice/constants.py.in
114
115CLEANFILES += \
116 src/buildservice/constants.py
117
7c17bfff
MT
118hub_PYTHON = \
119 src/hub/__init__.py \
120 src/hub/handlers.py
121
122hubdir = $(buildservicedir)/hub
123
7c17bfff
MT
124web_PYTHON = \
125 src/web/__init__.py \
b0e50a58 126 src/web/api.py \
aa8d5ad3 127 src/web/auth.py \
0919f216 128 src/web/base.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 \
7c17bfff 133 src/web/handlers.py \
8f6d6505 134 src/web/jobs.py \
f44a3f0d
MT
135 src/web/keys.py \
136 src/web/mirrors.py \
e71f1b15 137 src/web/packages.py \
b8b310ec 138 src/web/search.py \
fd902c1e
MT
139 src/web/ui_modules.py \
140 src/web/updates.py \
156b826e 141 src/web/users.py
7c17bfff
MT
142
143webdir = $(buildservicedir)/web
144
145# ------------------------------------------------------------------------------
146
147dist_templates_DATA = \
148 src/templates/base-form1.html \
149 src/templates/base-form2.html \
150 src/templates/base.html \
151 src/templates/build-bugs.html \
152 src/templates/build-delete.html \
153 src/templates/build-detail.html \
154 src/templates/build-filter.html \
155 src/templates/build-index.html \
156 src/templates/build-list.html \
157 src/templates/build-manage.html \
158 src/templates/build-priority.html \
159 src/templates/build-queue.html \
160 src/templates/build-schedule-test.html \
161 src/templates/build-state.html \
162 src/templates/builds-watchers-add.html \
163 src/templates/builds-watchers-list.html \
164 src/templates/distro-detail.html \
165 src/templates/distro-edit.html \
166 src/templates/distro-list.html \
167 src/templates/distro-source-commit-detail.html \
168 src/templates/distro-source-commit-reset.html \
169 src/templates/distro-source-commits.html \
170 src/templates/distro-source-detail.html \
171 src/templates/distro-update-detail.html \
172 src/templates/distro-update-edit.html \
173 src/templates/docs-base.html \
174 src/templates/docs-build.html \
175 src/templates/docs-index.html \
176 src/templates/docs-users.html \
177 src/templates/docs-whatsthis.html \
178 src/templates/file-detail.html \
179 src/templates/index.html \
180 src/templates/jobs-abort.html \
181 src/templates/jobs-buildroot.html \
182 src/templates/job-schedule-rebuild.html \
183 src/templates/job-schedule-test.html \
184 src/templates/jobs-detail.html \
7c17bfff
MT
185 src/templates/keys-delete.html \
186 src/templates/keys-import.html \
187 src/templates/keys-list.html \
188 src/templates/log.html \
189 src/templates/login.html \
7c17bfff
MT
190 src/templates/package-detail.html \
191 src/templates/package-detail-list.html \
192 src/templates/package-properties.html \
fe9b927c 193 src/templates/queue.html \
7c17bfff
MT
194 src/templates/register-activation-fail.html \
195 src/templates/register-activation-success.html \
196 src/templates/register-fail.html \
197 src/templates/register.html \
198 src/templates/register-success.html \
199 src/templates/repository-detail.html \
200 src/templates/repository-edit.html \
201 src/templates/search-form.html \
202 src/templates/search-results.html \
203 src/templates/source-list.html \
204 src/templates/updates-index.html \
205 src/templates/uploads-list.html \
7c17bfff
MT
206 src/templates/user-delete.html \
207 src/templates/user-forgot-password.html \
208 src/templates/user-impersonation.html \
209 src/templates/user-list.html \
210 src/templates/user-profile-builds.html \
211 src/templates/user-profile-edit-fail.html \
212 src/templates/user-profile-edit.html \
213 src/templates/user-profile.html \
214 src/templates/user-profile-need-activation.html \
215 src/templates/user-profile-passwd.html \
98b826d4
JS
216 src/templates/user-profile-passwd-ok.html \
217 src/templates/user-requested-password-recovery.html \
218 src/templates/user-reset-password.html \
73de7540
MT
219 src/templates/user-reset-password-success.html \
220 src/templates/user-reset-password-fail.html
7c17bfff
MT
221
222templatesdir = $(datadir)/templates
223
224dist_templates_builders_DATA = \
225 src/templates/builders/delete.html \
226 src/templates/builders/detail.html \
227 src/templates/builders/edit.html \
228 src/templates/builders/list.html \
229 src/templates/builders/new.html \
230 src/templates/builders/pass.html
231
232templates_buildersdir = $(templatesdir)/builders
233
234dist_templates_builds_DATA = \
235 src/templates/builds/comments.html
236
237templates_buildsdir = $(templatesdir)/builds
238
239dist_templates_errors_DATA = \
240 src/templates/errors/error.html \
241 src/templates/errors/error-400.html \
242 src/templates/errors/error-403.html \
243 src/templates/errors/error-404.html
244
245templates_errorsdir = $(templatesdir)/errors
246
68dd077d
MT
247templates_messagesdir = $(templatesdir)/messages
248
d0bce25d
MT
249dist_templates_messages_builds_DATA = \
250 src/templates/messages/builds/new-comment.markdown
251
252templates_messages_buildsdir = $(templates_messagesdir)/builds
253
1f43964c
MT
254dist_templates_messages_jobs_DATA = \
255 src/templates/messages/jobs/failed.markdown \
256 src/templates/messages/jobs/finished.markdown
257
258templates_messages_jobsdir = $(templates_messagesdir)/jobs
259
68dd077d 260dist_templates_messages_users_DATA = \
9ad522a5 261 src/templates/messages/users/account-activation.markdown \
a76becd9
JS
262 src/templates/messages/users/email-activation.markdown \
263 src/templates/messages/users/password-reset.markdown
68dd077d
MT
264
265templates_messages_usersdir = $(templates_messagesdir)/users
266
d72a55be
MT
267dist_templates_mirrors_DATA = \
268 src/templates/mirrors/delete.html \
269 src/templates/mirrors/detail.html \
270 src/templates/mirrors/edit.html \
271 src/templates/mirrors/list.html \
272 src/templates/mirrors/new.html
273
274templates_mirrorsdir = $(templatesdir)/mirrors
275
7c17bfff
MT
276dist_templates_modules_DATA = \
277 src/templates/modules/bugs-table.html \
278 src/templates/modules/build-headline.html \
279 src/templates/modules/build-log.html \
280 src/templates/modules/build-offset.html \
281 src/templates/modules/build-state-warnings.html \
282 src/templates/modules/build-table.html \
283 src/templates/modules/comments-table.html \
284 src/templates/modules/commits-table.html \
c6e799b4 285 src/templates/modules/commit-message.html \
7c17bfff
MT
286 src/templates/modules/files-table.html \
287 src/templates/modules/footer.html \
288 src/templates/modules/jobs-table.html \
8dc6f5a4 289 src/templates/modules/link-to-user.html \
7c17bfff
MT
290 src/templates/modules/log-entry-comment.html \
291 src/templates/modules/log-entry.html \
292 src/templates/modules/log-entry-small.html \
293 src/templates/modules/log-files-table.html \
294 src/templates/modules/log.html \
295 src/templates/modules/log-table.html \
7c17bfff
MT
296 src/templates/modules/modal-base.html \
297 src/templates/modules/modal-build-comment.html \
298 src/templates/modules/modal-build-push.html \
299 src/templates/modules/modal-build-unpush.html \
300 src/templates/modules/package-header.html \
301 src/templates/modules/packages-files-table.html \
302 src/templates/modules/packages-table.html \
303 src/templates/modules/package-table-detail.html \
304 src/templates/modules/repo-actions-table.html \
305 src/templates/modules/repository-table.html \
306 src/templates/modules/source-table.html \
f78cbba4 307 src/templates/modules/text.html \
7c17bfff
MT
308 src/templates/modules/updates-table.html \
309 src/templates/modules/user-table.html \
310 src/templates/modules/watchers-sidebar-table.html
311
312templates_modulesdir = $(templatesdir)/modules
313
7c17bfff
MT
314dist_templates_modules_changelog_DATA = \
315 src/templates/modules/changelog/entry.html \
316 src/templates/modules/changelog/index.html
317
318templates_modules_changelogdir = $(templates_modulesdir)/changelog
319
320dist_templates_modules_jobs_DATA = \
321 src/templates/modules/jobs/boxes.html \
322 src/templates/modules/jobs/list.html \
323 src/templates/modules/jobs/status.html
324
325templates_modules_jobsdir = $(templates_modulesdir)/jobs
326
327dist_templates_modules_packages_DATA = \
328 src/templates/modules/packages/dependency-table.html
329
330templates_modules_packagesdir = $(templates_modulesdir)/packages
331
332dist_templates_modules_select_DATA = \
333 src/templates/modules/select/locale.html \
334 src/templates/modules/select/timezone.html
335
336templates_modules_selectdir = $(templates_modulesdir)/select
337
338dist_templates_packages_DATA = \
339 src/templates/packages/changelog.html \
b5800237 340 src/templates/packages/index.html \
7c17bfff
MT
341 src/templates/packages/view-file.html
342
343templates_packagesdir = $(templatesdir)/packages
344
345dist_templates_packages_builds_DATA = \
346 src/templates/packages/builds/scratch.html \
347 src/templates/packages/builds/times.html
348
349templates_packages_buildsdir = $(templates_packagesdir)/builds
350
351dist_templates_sessions_DATA = \
352 src/templates/sessions/index.html
353
354templates_sessionsdir = $(templatesdir)/sessions
355
7c17bfff
MT
356# ------------------------------------------------------------------------------
357#
358dist_static_DATA = \
359 src/static/favicon.ico \
360 src/static/robots.txt
361
362staticdir = $(datadir)/static
363
364dist_static_css_DATA = \
365 src/static/css/bootstrap-responsive.min.css \
366 src/static/css/bootstrap.min.css \
56dc250e 367 src/static/css/style.css
7c17bfff
MT
368
369static_cssdir = $(staticdir)/css
370
371dist_static_font_DATA = \
372 src/static/font/fontawesome-webfont.eot \
373 src/static/font/fontawesome-webfont.svg \
374 src/static/font/fontawesome-webfont.ttf \
375 src/static/font/fontawesome-webfont.woff
376
f08f0c0b 377static_fontdir = $(staticdir)/font
7c17bfff
MT
378
379dist_static_images_DATA = \
7c17bfff
MT
380 src/static/images/icons/build-dispatching.png \
381 src/static/images/icons/build-failed.png \
382 src/static/images/icons/build-finished.png \
383 src/static/images/icons/build-pending.png \
384 src/static/images/icons/build-running.png \
385 src/static/images/icons/build-unknown.png \
386 src/static/images/icons/build-uploading.png \
387 src/static/images/icons/build-waiting.png \
388 src/static/images/icons/builder-disabled.png \
389 src/static/images/img01.jpg \
390 src/static/images/img02.jpg \
391 src/static/images/img03.jpg \
392 src/static/images/img04.jpg \
393 src/static/images/ipfire_tux_128x128.png \
394 src/static/images/readme.txt
395
396static_imagesdir = $(staticdir)/images
397
398dist_static_js_DATA = \
399 src/static/js/bootstrap.min.js \
400 src/static/js/jquery.js \
401 src/static/js/pbs.js \
0ba49891 402 src/static/js/popper.min.js \
7c17bfff
MT
403 src/static/js/prettify.js
404
405static_jsdir = $(staticdir)/js
406
407# ------------------------------------------------------------------------------
408
576ff900
JS
409EXTRA_DIST += \
410 Dockerfile.in
411
412docker_DATA = \
413 Dockerfile
414
9712aacf
MT
415CLEANFILES += \
416 Dockerfile
417
576ff900
JS
418dockerdir = $(datadir)/docker
419
420.PHONY: docker
421docker: Dockerfile
422 docker build -t "ipfire/pakfire-build-service:$(PACKAGE_VERSION)" .
423
424# ------------------------------------------------------------------------------
425
7c17bfff
MT
426if HAVE_SYSTEMD
427systemdsystemunit_DATA = \
428 # TODO
429
430CLEANFILES += \
431 $(systemdsystemunit_DATA)
432
433INSTALL_DIRS += \
434 $(systemdsystemunitdir)
435endif
436
437EXTRA_DIST += \
438 # TODO
439
440dist_database_DATA = \
441 src/database.sql
442
443databasedir = $(datadir)/database
444
445dist_cron_DATA = \
446 src/crontab/pakfire-build-service
447
448crondir = $(sysconfdir)/cron.d
449
d3e7a9fb
MT
450dist_geoip_DATA = \
451 src/geoip/GeoLite2-Country.mmdb
452
453geoipdir = $(datadir)/geoip
454
455EXTRA_DIST += \
fc83b54b 456 src/misc/lets-encrypt-x3-cross-signed.pem \
f291c971 457 src/tools/dump-database-schema.sh \
d3e7a9fb
MT
458 src/tools/update-geoip-database.sh
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
477%: %.in Makefile
478 $(SED_PROCESS)