1 ###############################################################################
3 # Pakfire - The IPFire package management system #
4 # Copyright (C) 2017 Pakfire development team #
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. #
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. #
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/>. #
19 ###############################################################################
21 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
22 AM_MAKEFLAGS = --no-print-directory
23 AUTOMAKE_OPTIONS = color-tests
25 # remove target it the command fails
28 # keep itermediate files
33 pythondir = $(pyexecdir)/pakfire
35 configsdir = $(sysconfdir)/pakfire
36 crondir = $(sysconfdir)/cron.d
45 @INTLTOOL_POLICY_RULE@
48 update-po: po/POTFILES.in
49 $(MAKE) -C po update-po
51 po/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 > $@
57 DISTCHECK_CONFIGURE_FLAGS = \
58 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
60 # ------------------------------------------------------------------------------
62 AM_V_XSLT = $(AM_V_XSLT_$(V))
63 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
64 AM_V_XSLT_0 = @echo " XSLT " $@;
66 # ------------------------------------------------------------------------------
72 # ------------------------------------------------------------------------------
75 src/scripts/pakfire-build-service \
76 src/scripts/pakfire-web
81 buildservice_PYTHON = \
82 src/buildservice/__init__.py \
83 src/buildservice/__version__.py \
84 src/buildservice/aws.py \
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 \
90 src/buildservice/config.py \
91 src/buildservice/constants.py \
92 src/buildservice/database.py \
93 src/buildservice/decorators.py \
94 src/buildservice/distribution.py \
95 src/buildservice/errors.py \
96 src/buildservice/events.py \
97 src/buildservice/git.py \
98 src/buildservice/jobs.py \
99 src/buildservice/keys.py \
100 src/buildservice/logstreams.py \
101 src/buildservice/messages.py \
102 src/buildservice/mirrors.py \
103 src/buildservice/misc.py \
104 src/buildservice/packages.py \
105 src/buildservice/repository.py \
106 src/buildservice/sessions.py \
107 src/buildservice/settings.py \
108 src/buildservice/sources.py \
109 src/buildservice/uploads.py \
110 src/buildservice/users.py
112 buildservicedir = $(pythondir)/buildservice
115 src/buildservice/constants.py
118 src/buildservice/constants.py.in
121 src/buildservice/constants.py
124 src/web/__init__.py \
128 src/web/builders.py \
130 src/web/distributions.py \
133 src/web/handlers.py \
137 src/web/packages.py \
140 src/web/ui_modules.py \
144 webdir = $(buildservicedir)/web
146 # ------------------------------------------------------------------------------
148 dist_templates_DATA = \
149 src/templates/base.html \
150 src/templates/index.html \
151 src/templates/jobs-buildroot.html \
152 src/templates/log.html \
153 src/templates/login.html \
154 src/templates/queue.html \
155 src/templates/search.html
157 templatesdir = $(datadir)/templates
159 templates_bugsdir = $(templatesdir)/bugs
161 dist_templates_bugs_modules_DATA = \
162 src/templates/bugs/modules/list.html
164 templates_bugs_modulesdir = $(templates_bugsdir)/modules
166 dist_templates_builders_DATA = \
167 src/templates/builders/delete.html \
168 src/templates/builders/detail.html \
169 src/templates/builders/edit.html \
170 src/templates/builders/list.html \
171 src/templates/builders/new.html
173 templates_buildersdir = $(templatesdir)/builders
175 dist_templates_builds_DATA = \
176 src/templates/builds/delete.html \
177 src/templates/builds/index.html \
178 src/templates/builds/show.html
180 templates_buildsdir = $(templatesdir)/builds
182 dist_templates_builds_messages_DATA = \
183 src/templates/builds/messages/comment.txt \
184 src/templates/builds/messages/failed.txt \
185 src/templates/builds/messages/finished.txt
187 templates_builds_messagesdir = $(templates_buildsdir)/messages
189 dist_templates_builds_modules_DATA = \
190 src/templates/builds/modules/list.html
192 templates_builds_modulesdir = $(templates_buildsdir)/modules
194 dist_templates_distros_DATA = \
195 src/templates/distros/edit.html \
196 src/templates/distros/index.html \
197 src/templates/distros/show.html
199 templates_distrosdir = $(templatesdir)/distros
201 dist_templates_distros_modules_DATA = \
202 src/templates/distros/modules/list.html
204 templates_distros_modulesdir = $(templates_distrosdir)/modules
206 dist_templates_errors_DATA = \
207 src/templates/errors/error.html
209 templates_errorsdir = $(templatesdir)/errors
211 templates_eventsdir = $(templatesdir)/events
213 dist_templates_events_modules_DATA = \
214 src/templates/events/modules/list.html \
215 src/templates/events/modules/build-comment.html \
216 src/templates/events/modules/system-message.html \
217 src/templates/events/modules/user-message.html
219 templates_events_modulesdir = $(templates_eventsdir)/modules
221 dist_templates_jobs_DATA = \
222 src/templates/jobs/abort.html \
223 src/templates/jobs/log-stream.html
225 templates_jobsdir = $(templatesdir)/jobs
227 dist_templates_jobs_messages_DATA = \
228 src/templates/jobs/messages/failed.txt
230 templates_jobs_messagesdir = $(templates_jobsdir)/messages
232 dist_templates_jobs_modules_DATA = \
233 src/templates/jobs/modules/list.html \
234 src/templates/jobs/modules/log-stream.html
236 templates_jobs_modulesdir = $(templates_jobsdir)/modules
238 templates_messagesdir = $(templatesdir)/messages
240 dist_templates_mirrors_DATA = \
241 src/templates/mirrors/delete.html \
242 src/templates/mirrors/detail.html \
243 src/templates/mirrors/edit.html \
244 src/templates/mirrors/list.html \
245 src/templates/mirrors/new.html
247 templates_mirrorsdir = $(templatesdir)/mirrors
249 dist_templates_modules_DATA = \
250 src/templates/modules/commits-table.html \
251 src/templates/modules/commit-message.html \
252 src/templates/modules/link-to-user.html \
253 src/templates/modules/packages-files-table.html \
254 src/templates/modules/source-table.html \
255 src/templates/modules/text.html
257 templates_modulesdir = $(templatesdir)/modules
259 dist_templates_repos_DATA = \
260 src/templates/repos/create-custom.html \
261 src/templates/repos/builds.html \
262 src/templates/repos/edit.html \
263 src/templates/repos/show.html
265 templates_reposdir = $(templatesdir)/repos
267 dist_templates_repos_modules_DATA = \
268 src/templates/repos/modules/list.html
270 templates_repos_modulesdir = $(templates_reposdir)/modules
272 dist_templates_packages_DATA = \
273 src/templates/packages/index.html \
274 src/templates/packages/name.html \
275 src/templates/packages/show.html \
276 src/templates/packages/view-file.html
278 templates_packagesdir = $(templatesdir)/packages
280 dist_templates_packages_modules_DATA = \
281 src/templates/packages/modules/dependencies.html \
282 src/templates/packages/modules/info.html
284 templates_packages_modulesdir = $(templates_packagesdir)/modules
286 dist_templates_users_DATA = \
287 src/templates/users/delete.html \
288 src/templates/users/edit.html \
289 src/templates/users/index.html \
290 src/templates/users/show.html
292 templates_usersdir = $(templatesdir)/users
294 dist_templates_users_messages_DATA = \
295 src/templates/users/messages/welcome.txt
297 templates_users_messagesdir = $(templates_usersdir)/messages
299 dist_templates_users_modules_DATA = \
300 src/templates/users/modules/list.html
302 templates_users_modulesdir = $(templates_usersdir)/modules
304 # ------------------------------------------------------------------------------
307 src/static/favicon.ico \
308 src/static/robots.txt
310 staticdir = $(datadir)/static
313 src/static/css/site.css
315 static_cssdir = $(staticdir)/css
318 src/static/css/_fonts.scss \
319 src/static/css/_icons.scss \
320 src/static/css/site.scss
323 src/static/css/site.css
326 src/static/js/jquery.min.js \
327 src/static/js/job-log-stream.min.js \
328 src/static/js/pbs.min.js
330 static_jsdir = $(staticdir)/js
333 src/static/js/job-log-stream.js \
339 dist_static_fonts_DATA = \
340 src/third-party/fonts/prompt/OFL.txt \
341 src/third-party/fonts/prompt/Prompt-Black.ttf \
342 src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \
343 src/third-party/fonts/prompt/Prompt-Bold.ttf \
344 src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \
345 src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \
346 src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \
347 src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \
348 src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \
349 src/third-party/fonts/prompt/Prompt-Italic.ttf \
350 src/third-party/fonts/prompt/Prompt-Light.ttf \
351 src/third-party/fonts/prompt/Prompt-LightItalic.ttf \
352 src/third-party/fonts/prompt/Prompt-Medium.ttf \
353 src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \
354 src/third-party/fonts/prompt/Prompt-Regular.ttf \
355 src/third-party/fonts/prompt/Prompt-SemiBold.ttf \
356 src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \
357 src/third-party/fonts/prompt/Prompt-Thin.ttf \
358 src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \
359 src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \
360 src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \
361 src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \
362 src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \
363 src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \
364 src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2
366 static_fontsdir = $(staticdir)/fonts
368 # ------------------------------------------------------------------------------
371 systemdsystemunit_DATA = \
372 src/systemd/pakfire-web.service
375 $(systemdsystemunit_DATA)
378 $(systemdsystemunitdir)
382 src/systemd/pakfire-web.service.in
384 dist_database_DATA = \
387 databasedir = $(datadir)/database
390 src/crontab/pakfire-build-service
393 src/tools/dump-database-schema.sh
395 # ------------------------------------------------------------------------------
398 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
399 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
400 '|configsdir=$(configsdir)|' \
401 '|bindir=$(bindir)|' \
402 '|datadir=$(datadir)|' \
403 '|localedir=$(localedir)|' \
404 '|templatesdir=$(templatesdir)|' \
405 '|staticdir=$(staticdir)|'
408 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
409 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
413 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
414 $(UGLIFYJS) --compress --mangle -- $< > $@
420 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
421 $(SASSC) --style compressed $< > $@
423 src/static/css/highlight.css: Makefile
424 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
425 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
430 # ------------------------------------------------------------------------------
433 $(dist_check_SCRIPTS)
435 TESTS_ENVIRONMENT = \
436 PYTHONPATH="$(abs_top_srcdir)/src" \
437 abs_top_srcdir="$(abs_top_srcdir)"
439 dist_check_SCRIPTS = \
453 tests/data/beep-1.3-2.ip3.src.pfm \
454 tests/data/beep-1.3-2.ip3.x86_64.pfm