]> git.ipfire.org Git - pbs.git/blob - Makefile.am
builders: Drop passphrase
[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 crondir = $(sysconfdir)/cron.d
37
38 BUILT_SOURCES =
39 CLEANFILES =
40 DISTCLEANFILES =
41 EXTRA_DIST =
42 INSTALL_DIRS =
43 noinst_DATA =
44
45 @INTLTOOL_POLICY_RULE@
46
47 .PHONY: update-po
48 update-po:
49 $(MAKE) -C po update-po
50
51 DISTCHECK_CONFIGURE_FLAGS = \
52 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
53
54 # ------------------------------------------------------------------------------
55
56 AM_V_XSLT = $(AM_V_XSLT_$(V))
57 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
58 AM_V_XSLT_0 = @echo " XSLT " $@;
59
60 # ------------------------------------------------------------------------------
61
62 dist_doc_DATA = \
63 COPYING \
64 README
65
66 # ------------------------------------------------------------------------------
67
68 dist_bin_SCRIPTS = \
69 src/scripts/pakfire-build-service \
70 src/scripts/pakfire-hub \
71 src/scripts/pakfire-web
72
73 dist_configs_DATA = \
74 pbs.conf.sample
75
76 buildservice_PYTHON = \
77 src/buildservice/__init__.py \
78 src/buildservice/__version__.py \
79 src/buildservice/aws.py \
80 src/buildservice/base.py \
81 src/buildservice/bugtracker.py \
82 src/buildservice/builders.py \
83 src/buildservice/builds.py \
84 src/buildservice/cache.py \
85 src/buildservice/constants.py \
86 src/buildservice/database.py \
87 src/buildservice/decorators.py \
88 src/buildservice/distribution.py \
89 src/buildservice/events.py \
90 src/buildservice/git.py \
91 src/buildservice/jobqueue.py \
92 src/buildservice/jobs.py \
93 src/buildservice/keys.py \
94 src/buildservice/ldap.py \
95 src/buildservice/logs.py \
96 src/buildservice/messages.py \
97 src/buildservice/mirrors.py \
98 src/buildservice/misc.py \
99 src/buildservice/packages.py \
100 src/buildservice/repository.py \
101 src/buildservice/sessions.py \
102 src/buildservice/settings.py \
103 src/buildservice/sources.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/builds.py \
121 src/hub/handlers.py \
122 src/hub/jobs.py \
123 src/hub/queue.py \
124 src/hub/uploads.py
125
126 hubdir = $(buildservicedir)/hub
127
128 web_PYTHON = \
129 src/web/__init__.py \
130 src/web/auth.py \
131 src/web/base.py \
132 src/web/bugs.py \
133 src/web/builders.py \
134 src/web/builds.py \
135 src/web/distributions.py \
136 src/web/errors.py \
137 src/web/events.py \
138 src/web/handlers.py \
139 src/web/jobs.py \
140 src/web/keys.py \
141 src/web/mirrors.py \
142 src/web/packages.py \
143 src/web/repos.py \
144 src/web/search.py \
145 src/web/ui_modules.py \
146 src/web/users.py
147
148 webdir = $(buildservicedir)/web
149
150 # ------------------------------------------------------------------------------
151
152 dist_templates_DATA = \
153 src/templates/base.html \
154 src/templates/build-delete.html \
155 src/templates/build-manage.html \
156 src/templates/build-schedule-test.html \
157 src/templates/build-state.html \
158 src/templates/builds-watchers-add.html \
159 src/templates/builds-watchers-list.html \
160 src/templates/distro-edit.html \
161 src/templates/distro-source-commit-detail.html \
162 src/templates/distro-source-commit-reset.html \
163 src/templates/distro-source-commits.html \
164 src/templates/distro-source-detail.html \
165 src/templates/distro-update-detail.html \
166 src/templates/distro-update-edit.html \
167 src/templates/file-detail.html \
168 src/templates/index.html \
169 src/templates/jobs-abort.html \
170 src/templates/jobs-buildroot.html \
171 src/templates/keys-delete.html \
172 src/templates/keys-import.html \
173 src/templates/keys-list.html \
174 src/templates/log.html \
175 src/templates/login.html \
176 src/templates/package-properties.html \
177 src/templates/queue.html \
178 src/templates/search.html \
179 src/templates/source-list.html \
180 src/templates/user-delete.html \
181 src/templates/user-impersonation.html \
182 src/templates/user-list.html \
183 src/templates/user-profile-edit-fail.html \
184 src/templates/user-profile-edit.html \
185 src/templates/user-profile-need-activation.html
186
187 templatesdir = $(datadir)/templates
188
189 templates_bugsdir = $(templatesdir)/bugs
190
191 dist_templates_bugs_modules_DATA = \
192 src/templates/bugs/modules/list.html
193
194 templates_bugs_modulesdir = $(templates_bugsdir)/modules
195
196 dist_templates_builders_DATA = \
197 src/templates/builders/delete.html \
198 src/templates/builders/detail.html \
199 src/templates/builders/edit.html \
200 src/templates/builders/list.html \
201 src/templates/builders/new.html
202
203 templates_buildersdir = $(templatesdir)/builders
204
205 dist_templates_builds_DATA = \
206 src/templates/builds/index.html \
207 src/templates/builds/show.html
208
209 templates_buildsdir = $(templatesdir)/builds
210
211 dist_templates_builds_modules_DATA = \
212 src/templates/builds/modules/list.html
213
214 templates_builds_modulesdir = $(templates_buildsdir)/modules
215
216 dist_templates_distros_DATA = \
217 src/templates/distros/index.html \
218 src/templates/distros/show.html
219
220 templates_distrosdir = $(templatesdir)/distros
221
222 dist_templates_errors_DATA = \
223 src/templates/errors/error.html \
224 src/templates/errors/error-400.html \
225 src/templates/errors/error-403.html \
226 src/templates/errors/error-404.html
227
228 templates_errorsdir = $(templatesdir)/errors
229
230 templates_eventsdir = $(templatesdir)/events
231
232 dist_templates_events_modules_DATA = \
233 src/templates/events/modules/list.html \
234 src/templates/events/modules/system-message.html \
235 src/templates/events/modules/user-message.html
236
237 templates_events_modulesdir = $(templates_eventsdir)/modules
238
239 templates_messagesdir = $(templatesdir)/messages
240
241 dist_templates_messages_builds_DATA = \
242 src/templates/messages/builds/new-comment.markdown
243
244 templates_messages_buildsdir = $(templates_messagesdir)/builds
245
246 dist_templates_messages_jobs_DATA = \
247 src/templates/messages/jobs/failed.markdown \
248 src/templates/messages/jobs/finished.markdown
249
250 templates_messages_jobsdir = $(templates_messagesdir)/jobs
251
252 dist_templates_messages_users_DATA = \
253 src/templates/messages/users/email-activation.markdown
254
255 templates_messages_usersdir = $(templates_messagesdir)/users
256
257 dist_templates_mirrors_DATA = \
258 src/templates/mirrors/delete.html \
259 src/templates/mirrors/detail.html \
260 src/templates/mirrors/edit.html \
261 src/templates/mirrors/list.html \
262 src/templates/mirrors/new.html
263
264 templates_mirrorsdir = $(templatesdir)/mirrors
265
266 dist_templates_modules_DATA = \
267 src/templates/modules/build-headline.html \
268 src/templates/modules/build-log.html \
269 src/templates/modules/build-offset.html \
270 src/templates/modules/build-state-warnings.html \
271 src/templates/modules/build-table.html \
272 src/templates/modules/commits-table.html \
273 src/templates/modules/commit-message.html \
274 src/templates/modules/files-table.html \
275 src/templates/modules/jobs-table.html \
276 src/templates/modules/link-to-user.html \
277 src/templates/modules/log-entry-comment.html \
278 src/templates/modules/log-entry.html \
279 src/templates/modules/log-entry-small.html \
280 src/templates/modules/log-files-table.html \
281 src/templates/modules/log.html \
282 src/templates/modules/log-table.html \
283 src/templates/modules/modal-base.html \
284 src/templates/modules/modal-build-comment.html \
285 src/templates/modules/modal-build-push.html \
286 src/templates/modules/modal-build-unpush.html \
287 src/templates/modules/package-header.html \
288 src/templates/modules/packages-files-table.html \
289 src/templates/modules/packages-table.html \
290 src/templates/modules/package-table-detail.html \
291 src/templates/modules/repo-actions-table.html \
292 src/templates/modules/source-table.html \
293 src/templates/modules/text.html \
294 src/templates/modules/user-table.html \
295 src/templates/modules/watchers-sidebar-table.html
296
297 templates_modulesdir = $(templatesdir)/modules
298
299 dist_templates_modules_jobs_DATA = \
300 src/templates/modules/jobs/list.html \
301 src/templates/modules/jobs/status.html
302
303 templates_modules_jobsdir = $(templates_modulesdir)/jobs
304
305 dist_templates_modules_select_DATA = \
306 src/templates/modules/select/locale.html \
307 src/templates/modules/select/timezone.html
308
309 templates_modules_selectdir = $(templates_modulesdir)/select
310
311 dist_templates_repos_DATA = \
312 src/templates/repos/create-custom.html \
313 src/templates/repos/builds.html \
314 src/templates/repos/edit.html \
315 src/templates/repos/show.html
316
317 templates_reposdir = $(templatesdir)/repos
318
319 dist_templates_repos_modules_DATA = \
320 src/templates/repos/modules/list.html
321
322 templates_repos_modulesdir = $(templates_reposdir)/modules
323
324 dist_templates_packages_DATA = \
325 src/templates/packages/index.html \
326 src/templates/packages/name.html \
327 src/templates/packages/show.html \
328 src/templates/packages/view-file.html
329
330 templates_packagesdir = $(templatesdir)/packages
331
332 dist_templates_packages_modules_DATA = \
333 src/templates/packages/modules/dependencies.html \
334 src/templates/packages/modules/info.html
335
336 templates_packages_modulesdir = $(templates_packagesdir)/modules
337
338 dist_templates_users_DATA = \
339 src/templates/users/show.html
340
341 templates_usersdir = $(templatesdir)/users
342
343 # ------------------------------------------------------------------------------
344 #
345 dist_static_DATA = \
346 src/static/favicon.ico \
347 src/static/robots.txt
348
349 staticdir = $(datadir)/static
350
351 static_css_DATA = \
352 src/static/css/highlight.css \
353 src/static/css/site.css
354
355 static_cssdir = $(staticdir)/css
356
357 EXTRA_DIST += \
358 src/static/css/_fonts.scss \
359 src/static/css/_icons.scss \
360 src/static/css/site.scss
361
362 CLEANFILES += \
363 src/static/css/site.css
364
365 static_js_DATA = \
366 src/static/js/foundation.min.js \
367 src/static/js/jquery.min.js \
368 src/static/js/pbs.js \
369 src/static/js/prettify.js
370
371 static_jsdir = $(staticdir)/js
372
373 CLEANFILES += \
374 src/static/js/foundation.min.js \
375 src/static/js/jquery.min.js
376
377 dist_static_fonts_DATA = \
378 src/third-party/fonts/prompt/OFL.txt \
379 src/third-party/fonts/prompt/Prompt-Black.ttf \
380 src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \
381 src/third-party/fonts/prompt/Prompt-Bold.ttf \
382 src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \
383 src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \
384 src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \
385 src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \
386 src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \
387 src/third-party/fonts/prompt/Prompt-Italic.ttf \
388 src/third-party/fonts/prompt/Prompt-Light.ttf \
389 src/third-party/fonts/prompt/Prompt-LightItalic.ttf \
390 src/third-party/fonts/prompt/Prompt-Medium.ttf \
391 src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \
392 src/third-party/fonts/prompt/Prompt-Regular.ttf \
393 src/third-party/fonts/prompt/Prompt-SemiBold.ttf \
394 src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \
395 src/third-party/fonts/prompt/Prompt-Thin.ttf \
396 src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \
397 src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \
398 src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \
399 src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \
400 src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \
401 src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \
402 src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2
403
404 static_fontsdir = $(staticdir)/fonts
405
406 # ------------------------------------------------------------------------------
407
408 if HAVE_SYSTEMD
409 systemdsystemunit_DATA = \
410 src/systemd/pakfire-hub.service \
411 src/systemd/pakfire-web.service
412
413 CLEANFILES += \
414 $(systemdsystemunit_DATA)
415
416 INSTALL_DIRS += \
417 $(systemdsystemunitdir)
418 endif
419
420 EXTRA_DIST += \
421 src/systemd/pakfire-hub.service.in \
422 src/systemd/pakfire-web.service.in
423
424 dist_database_DATA = \
425 src/database.sql
426
427 databasedir = $(datadir)/database
428
429 dist_cron_DATA = \
430 src/crontab/pakfire-build-service
431
432 EXTRA_DIST += \
433 src/tools/dump-database-schema.sh
434
435 # ------------------------------------------------------------------------------
436
437 substitutions = \
438 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
439 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
440 '|configsdir=$(configsdir)|' \
441 '|bindir=$(bindir)|' \
442 '|datadir=$(datadir)|' \
443 '|localedir=$(localedir)|' \
444 '|templatesdir=$(templatesdir)|' \
445 '|staticdir=$(staticdir)|'
446
447 SED_PROCESS = \
448 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
449 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
450 < $< > $@
451
452 UGLIFYJS_PROCESS = \
453 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
454 $(UGLIFYJS) --compress --mangle -- $< > $@
455
456 %: %.in Makefile
457 $(SED_PROCESS)
458
459 %.css: %.scss
460 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
461 $(SASSC) --style compressed $< > $@
462
463 src/static/css/highlight.css: Makefile
464 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
465 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
466
467 %.min.js: %.js
468 $(UGLIFYJS_PROCESS)
469
470 src/static/js/foundation.min.js: src/third-party/foundation-sites/dist/js/foundation.js
471 $(UGLIFYJS_PROCESS)