]> git.ipfire.org Git - pbs.git/blob - Makefile.am
users: Refactor editing profiles
[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
181 templatesdir = $(datadir)/templates
182
183 templates_bugsdir = $(templatesdir)/bugs
184
185 dist_templates_bugs_modules_DATA = \
186 src/templates/bugs/modules/list.html
187
188 templates_bugs_modulesdir = $(templates_bugsdir)/modules
189
190 dist_templates_builders_DATA = \
191 src/templates/builders/delete.html \
192 src/templates/builders/detail.html \
193 src/templates/builders/edit.html \
194 src/templates/builders/list.html \
195 src/templates/builders/new.html
196
197 templates_buildersdir = $(templatesdir)/builders
198
199 dist_templates_builds_DATA = \
200 src/templates/builds/index.html \
201 src/templates/builds/show.html
202
203 templates_buildsdir = $(templatesdir)/builds
204
205 dist_templates_builds_modules_DATA = \
206 src/templates/builds/modules/list.html
207
208 templates_builds_modulesdir = $(templates_buildsdir)/modules
209
210 dist_templates_distros_DATA = \
211 src/templates/distros/index.html \
212 src/templates/distros/show.html
213
214 templates_distrosdir = $(templatesdir)/distros
215
216 dist_templates_errors_DATA = \
217 src/templates/errors/error.html \
218 src/templates/errors/error-400.html \
219 src/templates/errors/error-403.html \
220 src/templates/errors/error-404.html
221
222 templates_errorsdir = $(templatesdir)/errors
223
224 templates_eventsdir = $(templatesdir)/events
225
226 dist_templates_events_modules_DATA = \
227 src/templates/events/modules/list.html \
228 src/templates/events/modules/system-message.html \
229 src/templates/events/modules/user-message.html
230
231 templates_events_modulesdir = $(templates_eventsdir)/modules
232
233 templates_messagesdir = $(templatesdir)/messages
234
235 dist_templates_messages_builds_DATA = \
236 src/templates/messages/builds/new-comment.markdown
237
238 templates_messages_buildsdir = $(templates_messagesdir)/builds
239
240 dist_templates_messages_jobs_DATA = \
241 src/templates/messages/jobs/failed.markdown \
242 src/templates/messages/jobs/finished.markdown
243
244 templates_messages_jobsdir = $(templates_messagesdir)/jobs
245
246 dist_templates_messages_users_DATA = \
247 src/templates/messages/users/email-activation.markdown
248
249 templates_messages_usersdir = $(templates_messagesdir)/users
250
251 dist_templates_mirrors_DATA = \
252 src/templates/mirrors/delete.html \
253 src/templates/mirrors/detail.html \
254 src/templates/mirrors/edit.html \
255 src/templates/mirrors/list.html \
256 src/templates/mirrors/new.html
257
258 templates_mirrorsdir = $(templatesdir)/mirrors
259
260 dist_templates_modules_DATA = \
261 src/templates/modules/build-headline.html \
262 src/templates/modules/build-log.html \
263 src/templates/modules/build-offset.html \
264 src/templates/modules/build-state-warnings.html \
265 src/templates/modules/build-table.html \
266 src/templates/modules/commits-table.html \
267 src/templates/modules/commit-message.html \
268 src/templates/modules/files-table.html \
269 src/templates/modules/jobs-table.html \
270 src/templates/modules/link-to-user.html \
271 src/templates/modules/log-entry-comment.html \
272 src/templates/modules/log-entry.html \
273 src/templates/modules/log-entry-small.html \
274 src/templates/modules/log-files-table.html \
275 src/templates/modules/log.html \
276 src/templates/modules/log-table.html \
277 src/templates/modules/modal-base.html \
278 src/templates/modules/modal-build-comment.html \
279 src/templates/modules/modal-build-push.html \
280 src/templates/modules/modal-build-unpush.html \
281 src/templates/modules/package-header.html \
282 src/templates/modules/packages-files-table.html \
283 src/templates/modules/packages-table.html \
284 src/templates/modules/package-table-detail.html \
285 src/templates/modules/repo-actions-table.html \
286 src/templates/modules/source-table.html \
287 src/templates/modules/text.html \
288 src/templates/modules/watchers-sidebar-table.html
289
290 templates_modulesdir = $(templatesdir)/modules
291
292 dist_templates_modules_jobs_DATA = \
293 src/templates/modules/jobs/list.html \
294 src/templates/modules/jobs/status.html
295
296 templates_modules_jobsdir = $(templates_modulesdir)/jobs
297
298 dist_templates_modules_select_DATA = \
299 src/templates/modules/select/locale.html \
300 src/templates/modules/select/timezone.html
301
302 templates_modules_selectdir = $(templates_modulesdir)/select
303
304 dist_templates_repos_DATA = \
305 src/templates/repos/create-custom.html \
306 src/templates/repos/builds.html \
307 src/templates/repos/edit.html \
308 src/templates/repos/show.html
309
310 templates_reposdir = $(templatesdir)/repos
311
312 dist_templates_repos_modules_DATA = \
313 src/templates/repos/modules/list.html
314
315 templates_repos_modulesdir = $(templates_reposdir)/modules
316
317 dist_templates_packages_DATA = \
318 src/templates/packages/index.html \
319 src/templates/packages/name.html \
320 src/templates/packages/show.html \
321 src/templates/packages/view-file.html
322
323 templates_packagesdir = $(templatesdir)/packages
324
325 dist_templates_packages_modules_DATA = \
326 src/templates/packages/modules/dependencies.html \
327 src/templates/packages/modules/info.html
328
329 templates_packages_modulesdir = $(templates_packagesdir)/modules
330
331 dist_templates_users_DATA = \
332 src/templates/users/delete.html \
333 src/templates/users/edit.html \
334 src/templates/users/index.html \
335 src/templates/users/show.html
336
337 templates_usersdir = $(templatesdir)/users
338
339 dist_templates_users_modules_DATA = \
340 src/templates/users/modules/list.html
341
342 templates_users_modulesdir = $(templates_usersdir)/modules
343
344 # ------------------------------------------------------------------------------
345 #
346 dist_static_DATA = \
347 src/static/favicon.ico \
348 src/static/robots.txt
349
350 staticdir = $(datadir)/static
351
352 static_css_DATA = \
353 src/static/css/highlight.css \
354 src/static/css/site.css
355
356 static_cssdir = $(staticdir)/css
357
358 EXTRA_DIST += \
359 src/static/css/_fonts.scss \
360 src/static/css/_icons.scss \
361 src/static/css/site.scss
362
363 CLEANFILES += \
364 src/static/css/site.css
365
366 static_js_DATA = \
367 src/static/js/foundation.min.js \
368 src/static/js/jquery.min.js \
369 src/static/js/pbs.js \
370 src/static/js/prettify.js
371
372 static_jsdir = $(staticdir)/js
373
374 CLEANFILES += \
375 src/static/js/foundation.min.js \
376 src/static/js/jquery.min.js
377
378 dist_static_fonts_DATA = \
379 src/third-party/fonts/prompt/OFL.txt \
380 src/third-party/fonts/prompt/Prompt-Black.ttf \
381 src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \
382 src/third-party/fonts/prompt/Prompt-Bold.ttf \
383 src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \
384 src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \
385 src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \
386 src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \
387 src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \
388 src/third-party/fonts/prompt/Prompt-Italic.ttf \
389 src/third-party/fonts/prompt/Prompt-Light.ttf \
390 src/third-party/fonts/prompt/Prompt-LightItalic.ttf \
391 src/third-party/fonts/prompt/Prompt-Medium.ttf \
392 src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \
393 src/third-party/fonts/prompt/Prompt-Regular.ttf \
394 src/third-party/fonts/prompt/Prompt-SemiBold.ttf \
395 src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \
396 src/third-party/fonts/prompt/Prompt-Thin.ttf \
397 src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \
398 src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \
399 src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \
400 src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \
401 src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \
402 src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \
403 src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2
404
405 static_fontsdir = $(staticdir)/fonts
406
407 # ------------------------------------------------------------------------------
408
409 if HAVE_SYSTEMD
410 systemdsystemunit_DATA = \
411 src/systemd/pakfire-hub.service \
412 src/systemd/pakfire-web.service
413
414 CLEANFILES += \
415 $(systemdsystemunit_DATA)
416
417 INSTALL_DIRS += \
418 $(systemdsystemunitdir)
419 endif
420
421 EXTRA_DIST += \
422 src/systemd/pakfire-hub.service.in \
423 src/systemd/pakfire-web.service.in
424
425 dist_database_DATA = \
426 src/database.sql
427
428 databasedir = $(datadir)/database
429
430 dist_cron_DATA = \
431 src/crontab/pakfire-build-service
432
433 EXTRA_DIST += \
434 src/tools/dump-database-schema.sh
435
436 # ------------------------------------------------------------------------------
437
438 substitutions = \
439 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
440 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
441 '|configsdir=$(configsdir)|' \
442 '|bindir=$(bindir)|' \
443 '|datadir=$(datadir)|' \
444 '|localedir=$(localedir)|' \
445 '|templatesdir=$(templatesdir)|' \
446 '|staticdir=$(staticdir)|'
447
448 SED_PROCESS = \
449 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
450 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
451 < $< > $@
452
453 UGLIFYJS_PROCESS = \
454 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
455 $(UGLIFYJS) --compress --mangle -- $< > $@
456
457 %: %.in Makefile
458 $(SED_PROCESS)
459
460 %.css: %.scss
461 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
462 $(SASSC) --style compressed $< > $@
463
464 src/static/css/highlight.css: Makefile
465 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
466 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
467
468 %.min.js: %.js
469 $(UGLIFYJS_PROCESS)
470
471 src/static/js/foundation.min.js: src/third-party/foundation-sites/dist/js/foundation.js
472 $(UGLIFYJS_PROCESS)