]> git.ipfire.org Git - pbs.git/blob - Makefile.am
bootstrap4: Score should be bigger
[pbs.git] / Makefile.am
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
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
33 pythondir = $(pyexecdir)/pakfire
34
35 configsdir = $(sysconfdir)/pakfire
36
37 BUILT_SOURCES =
38 CLEANFILES =
39 DISTCLEANFILES =
40 EXTRA_DIST =
41 INSTALL_DIRS =
42 noinst_DATA =
43
44 @INTLTOOL_POLICY_RULE@
45
46 .PHONY: update-po
47 update-po:
48 $(MAKE) -C po update-po
49
50 DISTCHECK_CONFIGURE_FLAGS = \
51 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
52
53 # ------------------------------------------------------------------------------
54
55 AM_V_XSLT = $(AM_V_XSLT_$(V))
56 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
57 AM_V_XSLT_0 = @echo " XSLT " $@;
58
59 # ------------------------------------------------------------------------------
60
61 dist_doc_DATA = \
62 COPYING \
63 README
64
65 # ------------------------------------------------------------------------------
66
67 dist_bin_SCRIPTS = \
68 src/scripts/pakfire-build-service \
69 src/scripts/pakfire-hub \
70 src/scripts/pakfire-web
71
72 dist_configs_DATA = \
73 pbs.conf.sample
74
75 buildservice_PYTHON = \
76 src/buildservice/__init__.py \
77 src/buildservice/__version__.py \
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 \
86 src/buildservice/decorators.py \
87 src/buildservice/distribution.py \
88 src/buildservice/geoip.py \
89 src/buildservice/git.py \
90 src/buildservice/jobqueue.py \
91 src/buildservice/jobs.py \
92 src/buildservice/keys.py \
93 src/buildservice/ldap.py \
94 src/buildservice/logs.py \
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 \
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
107 buildservicedir = $(pythondir)/buildservice
108
109 BUILT_SOURCES += \
110 src/buildservice/constants.py
111
112 EXTRA_DIST += \
113 src/buildservice/constants.py.in
114
115 CLEANFILES += \
116 src/buildservice/constants.py
117
118 hub_PYTHON = \
119 src/hub/__init__.py \
120 src/hub/handlers.py
121
122 hubdir = $(buildservicedir)/hub
123
124 web_PYTHON = \
125 src/web/__init__.py \
126 src/web/api.py \
127 src/web/auth.py \
128 src/web/base.py \
129 src/web/builders.py \
130 src/web/builds.py \
131 src/web/distributions.py \
132 src/web/errors.py \
133 src/web/handlers.py \
134 src/web/jobs.py \
135 src/web/keys.py \
136 src/web/mirrors.py \
137 src/web/packages.py \
138 src/web/search.py \
139 src/web/ui_modules.py \
140 src/web/updates.py \
141 src/web/users.py
142
143 webdir = $(buildservicedir)/web
144
145 # ------------------------------------------------------------------------------
146
147 dist_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 \
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 \
190 src/templates/package-detail.html \
191 src/templates/package-detail-list.html \
192 src/templates/package-properties.html \
193 src/templates/queue.html \
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 \
206 src/templates/user-comments.html \
207 src/templates/user-delete.html \
208 src/templates/user-forgot-password.html \
209 src/templates/user-impersonation.html \
210 src/templates/user-list.html \
211 src/templates/user-profile-builds.html \
212 src/templates/user-profile-edit-fail.html \
213 src/templates/user-profile-edit.html \
214 src/templates/user-profile.html \
215 src/templates/user-profile-need-activation.html \
216 src/templates/user-profile-passwd.html \
217 src/templates/user-profile-passwd-ok.html \
218 src/templates/user-requested-password-recovery.html \
219 src/templates/user-reset-password.html \
220 src/templates/user-reset-password-success.html \
221 src/templates/user-reset-password-fail.html
222
223 templatesdir = $(datadir)/templates
224
225 dist_templates_builders_DATA = \
226 src/templates/builders/delete.html \
227 src/templates/builders/detail.html \
228 src/templates/builders/edit.html \
229 src/templates/builders/list.html \
230 src/templates/builders/new.html \
231 src/templates/builders/pass.html
232
233 templates_buildersdir = $(templatesdir)/builders
234
235 dist_templates_builds_DATA = \
236 src/templates/builds/comments.html
237
238 templates_buildsdir = $(templatesdir)/builds
239
240 dist_templates_errors_DATA = \
241 src/templates/errors/error.html \
242 src/templates/errors/error-400.html \
243 src/templates/errors/error-403.html \
244 src/templates/errors/error-404.html
245
246 templates_errorsdir = $(templatesdir)/errors
247
248 templates_messagesdir = $(templatesdir)/messages
249
250 dist_templates_messages_builds_DATA = \
251 src/templates/messages/builds/new-comment.markdown
252
253 templates_messages_buildsdir = $(templates_messagesdir)/builds
254
255 dist_templates_messages_jobs_DATA = \
256 src/templates/messages/jobs/failed.markdown \
257 src/templates/messages/jobs/finished.markdown
258
259 templates_messages_jobsdir = $(templates_messagesdir)/jobs
260
261 dist_templates_messages_users_DATA = \
262 src/templates/messages/users/account-activation.markdown \
263 src/templates/messages/users/email-activation.markdown \
264 src/templates/messages/users/password-reset.markdown
265
266 templates_messages_usersdir = $(templates_messagesdir)/users
267
268 dist_templates_mirrors_DATA = \
269 src/templates/mirrors/delete.html \
270 src/templates/mirrors/detail.html \
271 src/templates/mirrors/edit.html \
272 src/templates/mirrors/list.html \
273 src/templates/mirrors/new.html
274
275 templates_mirrorsdir = $(templatesdir)/mirrors
276
277 dist_templates_modules_DATA = \
278 src/templates/modules/bugs-table.html \
279 src/templates/modules/build-headline.html \
280 src/templates/modules/build-log.html \
281 src/templates/modules/build-offset.html \
282 src/templates/modules/build-state-warnings.html \
283 src/templates/modules/build-table.html \
284 src/templates/modules/comments-table.html \
285 src/templates/modules/commits-table.html \
286 src/templates/modules/commit-message.html \
287 src/templates/modules/files-table.html \
288 src/templates/modules/footer.html \
289 src/templates/modules/jobs-table.html \
290 src/templates/modules/link-to-user.html \
291 src/templates/modules/log-entry-comment.html \
292 src/templates/modules/log-entry.html \
293 src/templates/modules/log-entry-small.html \
294 src/templates/modules/log-files-table.html \
295 src/templates/modules/log.html \
296 src/templates/modules/log-table.html \
297 src/templates/modules/modal-base.html \
298 src/templates/modules/modal-build-comment.html \
299 src/templates/modules/modal-build-push.html \
300 src/templates/modules/modal-build-unpush.html \
301 src/templates/modules/package-header.html \
302 src/templates/modules/packages-files-table.html \
303 src/templates/modules/packages-table.html \
304 src/templates/modules/package-table-detail.html \
305 src/templates/modules/repo-actions-table.html \
306 src/templates/modules/repository-table.html \
307 src/templates/modules/source-table.html \
308 src/templates/modules/text.html \
309 src/templates/modules/updates-table.html \
310 src/templates/modules/user-table.html \
311 src/templates/modules/watchers-sidebar-table.html
312
313 templates_modulesdir = $(templatesdir)/modules
314
315 dist_templates_modules_changelog_DATA = \
316 src/templates/modules/changelog/entry.html \
317 src/templates/modules/changelog/index.html
318
319 templates_modules_changelogdir = $(templates_modulesdir)/changelog
320
321 dist_templates_modules_jobs_DATA = \
322 src/templates/modules/jobs/boxes.html \
323 src/templates/modules/jobs/list.html \
324 src/templates/modules/jobs/status.html
325
326 templates_modules_jobsdir = $(templates_modulesdir)/jobs
327
328 dist_templates_modules_packages_DATA = \
329 src/templates/modules/packages/dependency-table.html
330
331 templates_modules_packagesdir = $(templates_modulesdir)/packages
332
333 dist_templates_modules_select_DATA = \
334 src/templates/modules/select/locale.html \
335 src/templates/modules/select/timezone.html
336
337 templates_modules_selectdir = $(templates_modulesdir)/select
338
339 dist_templates_packages_DATA = \
340 src/templates/packages/changelog.html \
341 src/templates/packages/index.html \
342 src/templates/packages/view-file.html
343
344 templates_packagesdir = $(templatesdir)/packages
345
346 dist_templates_packages_builds_DATA = \
347 src/templates/packages/builds/scratch.html \
348 src/templates/packages/builds/times.html
349
350 templates_packages_buildsdir = $(templates_packagesdir)/builds
351
352 dist_templates_sessions_DATA = \
353 src/templates/sessions/index.html
354
355 templates_sessionsdir = $(templatesdir)/sessions
356
357 # ------------------------------------------------------------------------------
358 #
359 dist_static_DATA = \
360 src/static/favicon.ico \
361 src/static/robots.txt
362
363 staticdir = $(datadir)/static
364
365 dist_static_css_DATA = \
366 src/static/css/bootstrap-responsive.min.css \
367 src/static/css/bootstrap.min.css \
368 src/static/css/style.css
369
370 static_cssdir = $(staticdir)/css
371
372 dist_static_font_DATA = \
373 src/static/font/fontawesome-webfont.eot \
374 src/static/font/fontawesome-webfont.svg \
375 src/static/font/fontawesome-webfont.ttf \
376 src/static/font/fontawesome-webfont.woff
377
378 static_fontdir = $(staticdir)/font
379
380 dist_static_images_DATA = \
381 src/static/images/icons/build-dispatching.png \
382 src/static/images/icons/build-failed.png \
383 src/static/images/icons/build-finished.png \
384 src/static/images/icons/build-pending.png \
385 src/static/images/icons/build-running.png \
386 src/static/images/icons/build-unknown.png \
387 src/static/images/icons/build-uploading.png \
388 src/static/images/icons/build-waiting.png \
389 src/static/images/icons/builder-disabled.png \
390 src/static/images/img01.jpg \
391 src/static/images/img02.jpg \
392 src/static/images/img03.jpg \
393 src/static/images/img04.jpg \
394 src/static/images/ipfire_tux_128x128.png \
395 src/static/images/readme.txt
396
397 static_imagesdir = $(staticdir)/images
398
399 dist_static_js_DATA = \
400 src/static/js/bootstrap.min.js \
401 src/static/js/jquery.js \
402 src/static/js/pbs.js \
403 src/static/js/popper.min.js \
404 src/static/js/prettify.js
405
406 static_jsdir = $(staticdir)/js
407
408 # ------------------------------------------------------------------------------
409
410 EXTRA_DIST += \
411 Dockerfile.in
412
413 docker_DATA = \
414 Dockerfile
415
416 CLEANFILES += \
417 Dockerfile
418
419 dockerdir = $(datadir)/docker
420
421 .PHONY: docker
422 docker: Dockerfile
423 docker build -t "ipfire/pakfire-build-service:$(PACKAGE_VERSION)" .
424
425 # ------------------------------------------------------------------------------
426
427 if HAVE_SYSTEMD
428 systemdsystemunit_DATA = \
429 # TODO
430
431 CLEANFILES += \
432 $(systemdsystemunit_DATA)
433
434 INSTALL_DIRS += \
435 $(systemdsystemunitdir)
436 endif
437
438 EXTRA_DIST += \
439 # TODO
440
441 dist_database_DATA = \
442 src/database.sql
443
444 databasedir = $(datadir)/database
445
446 dist_cron_DATA = \
447 src/crontab/pakfire-build-service
448
449 crondir = $(sysconfdir)/cron.d
450
451 dist_geoip_DATA = \
452 src/geoip/GeoLite2-Country.mmdb
453
454 geoipdir = $(datadir)/geoip
455
456 EXTRA_DIST += \
457 src/misc/lets-encrypt-x3-cross-signed.pem \
458 src/tools/dump-database-schema.sh \
459 src/tools/update-geoip-database.sh
460
461 # ------------------------------------------------------------------------------
462
463 substitutions = \
464 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
465 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
466 '|configsdir=$(configsdir)|' \
467 '|bindir=$(bindir)|' \
468 '|datadir=$(datadir)|' \
469 '|localedir=$(localedir)|' \
470 '|templatesdir=$(templatesdir)|' \
471 '|staticdir=$(staticdir)|'
472
473 SED_PROCESS = \
474 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
475 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
476 < $< > $@
477
478 %: %.in Makefile
479 $(SED_PROCESS)