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-hub \
77 src/scripts/pakfire-web
82 buildservice_PYTHON = \
83 src/buildservice/__init__.py \
84 src/buildservice/__version__.py \
85 src/buildservice/aws.py \
86 src/buildservice/base.py \
87 src/buildservice/bugtracker.py \
88 src/buildservice/builders.py \
89 src/buildservice/builds.py \
90 src/buildservice/cache.py \
91 src/buildservice/config.py \
92 src/buildservice/constants.py \
93 src/buildservice/database.py \
94 src/buildservice/decorators.py \
95 src/buildservice/distribution.py \
96 src/buildservice/errors.py \
97 src/buildservice/events.py \
98 src/buildservice/git.py \
99 src/buildservice/jobqueue.py \
100 src/buildservice/jobs.py \
101 src/buildservice/keys.py \
102 src/buildservice/messages.py \
103 src/buildservice/mirrors.py \
104 src/buildservice/misc.py \
105 src/buildservice/packages.py \
106 src/buildservice/repository.py \
107 src/buildservice/sessions.py \
108 src/buildservice/settings.py \
109 src/buildservice/sources.py \
110 src/buildservice/uploads.py \
111 src/buildservice/users.py
113 buildservicedir = $(pythondir)/buildservice
116 src/buildservice/constants.py
119 src/buildservice/constants.py.in
122 src/buildservice/constants.py
125 src/hub/__init__.py \
127 src/hub/handlers.py \
132 hubdir = $(buildservicedir)/hub
135 src/web/__init__.py \
139 src/web/builders.py \
141 src/web/distributions.py \
144 src/web/handlers.py \
148 src/web/packages.py \
151 src/web/ui_modules.py \
154 webdir = $(buildservicedir)/web
156 # ------------------------------------------------------------------------------
158 dist_templates_DATA = \
159 src/templates/base.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/index.html \
166 src/templates/jobs-abort.html \
167 src/templates/jobs-buildroot.html \
168 src/templates/log.html \
169 src/templates/login.html \
170 src/templates/queue.html \
171 src/templates/search.html
173 templatesdir = $(datadir)/templates
175 templates_bugsdir = $(templatesdir)/bugs
177 dist_templates_bugs_modules_DATA = \
178 src/templates/bugs/modules/list.html
180 templates_bugs_modulesdir = $(templates_bugsdir)/modules
182 dist_templates_builders_DATA = \
183 src/templates/builders/delete.html \
184 src/templates/builders/detail.html \
185 src/templates/builders/edit.html \
186 src/templates/builders/list.html \
187 src/templates/builders/new.html
189 templates_buildersdir = $(templatesdir)/builders
191 dist_templates_builds_DATA = \
192 src/templates/builds/delete.html \
193 src/templates/builds/index.html \
194 src/templates/builds/show.html
196 templates_buildsdir = $(templatesdir)/builds
198 dist_templates_builds_messages_DATA = \
199 src/templates/builds/messages/comment.txt \
200 src/templates/builds/messages/failed.txt \
201 src/templates/builds/messages/finished.txt
203 templates_builds_messagesdir = $(templates_buildsdir)/messages
205 dist_templates_builds_modules_DATA = \
206 src/templates/builds/modules/list.html
208 templates_builds_modulesdir = $(templates_buildsdir)/modules
210 dist_templates_distros_DATA = \
211 src/templates/distros/index.html \
212 src/templates/distros/show.html
214 templates_distrosdir = $(templatesdir)/distros
216 dist_templates_errors_DATA = \
217 src/templates/errors/error.html
219 templates_errorsdir = $(templatesdir)/errors
221 templates_eventsdir = $(templatesdir)/events
223 dist_templates_events_modules_DATA = \
224 src/templates/events/modules/list.html \
225 src/templates/events/modules/build-comment.html \
226 src/templates/events/modules/system-message.html \
227 src/templates/events/modules/user-message.html
229 templates_events_modulesdir = $(templates_eventsdir)/modules
231 templates_jobsdir = $(templatesdir)/jobs
233 dist_templates_jobs_messages_DATA = \
234 src/templates/jobs/messages/failed.txt
236 templates_jobs_messagesdir = $(templates_jobsdir)/messages
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
256 templates_modulesdir = $(templatesdir)/modules
258 dist_templates_modules_jobs_DATA = \
259 src/templates/modules/jobs/list.html
261 templates_modules_jobsdir = $(templates_modulesdir)/jobs
263 dist_templates_repos_DATA = \
264 src/templates/repos/create-custom.html \
265 src/templates/repos/builds.html \
266 src/templates/repos/edit.html \
267 src/templates/repos/show.html
269 templates_reposdir = $(templatesdir)/repos
271 dist_templates_repos_modules_DATA = \
272 src/templates/repos/modules/list.html
274 templates_repos_modulesdir = $(templates_reposdir)/modules
276 dist_templates_packages_DATA = \
277 src/templates/packages/index.html \
278 src/templates/packages/name.html \
279 src/templates/packages/show.html \
280 src/templates/packages/view-file.html
282 templates_packagesdir = $(templatesdir)/packages
284 dist_templates_packages_modules_DATA = \
285 src/templates/packages/modules/dependencies.html \
286 src/templates/packages/modules/info.html
288 templates_packages_modulesdir = $(templates_packagesdir)/modules
290 dist_templates_users_DATA = \
291 src/templates/users/delete.html \
292 src/templates/users/edit.html \
293 src/templates/users/index.html \
294 src/templates/users/show.html
296 templates_usersdir = $(templatesdir)/users
298 dist_templates_users_messages_DATA = \
299 src/templates/users/messages/welcome.txt
301 templates_users_messagesdir = $(templates_usersdir)/messages
303 dist_templates_users_modules_DATA = \
304 src/templates/users/modules/list.html
306 templates_users_modulesdir = $(templates_usersdir)/modules
308 # ------------------------------------------------------------------------------
311 src/static/favicon.ico \
312 src/static/robots.txt
314 staticdir = $(datadir)/static
317 src/static/css/highlight.css \
318 src/static/css/site.css
320 static_cssdir = $(staticdir)/css
323 src/static/css/_fonts.scss \
324 src/static/css/_icons.scss \
325 src/static/css/site.scss
328 src/static/css/site.css
331 src/static/js/jquery.min.js \
332 src/static/js/pbs.js \
333 src/static/js/prettify.js
335 static_jsdir = $(staticdir)/js
338 src/static/js/jquery.min.js
340 dist_static_fonts_DATA = \
341 src/third-party/fonts/prompt/OFL.txt \
342 src/third-party/fonts/prompt/Prompt-Black.ttf \
343 src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \
344 src/third-party/fonts/prompt/Prompt-Bold.ttf \
345 src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \
346 src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \
347 src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \
348 src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \
349 src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \
350 src/third-party/fonts/prompt/Prompt-Italic.ttf \
351 src/third-party/fonts/prompt/Prompt-Light.ttf \
352 src/third-party/fonts/prompt/Prompt-LightItalic.ttf \
353 src/third-party/fonts/prompt/Prompt-Medium.ttf \
354 src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \
355 src/third-party/fonts/prompt/Prompt-Regular.ttf \
356 src/third-party/fonts/prompt/Prompt-SemiBold.ttf \
357 src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \
358 src/third-party/fonts/prompt/Prompt-Thin.ttf \
359 src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \
360 src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \
361 src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \
362 src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \
363 src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \
364 src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \
365 src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2
367 static_fontsdir = $(staticdir)/fonts
369 # ------------------------------------------------------------------------------
372 systemdsystemunit_DATA = \
373 src/systemd/pakfire-hub.service \
374 src/systemd/pakfire-web.service
377 $(systemdsystemunit_DATA)
380 $(systemdsystemunitdir)
384 src/systemd/pakfire-hub.service.in \
385 src/systemd/pakfire-web.service.in
387 dist_database_DATA = \
390 databasedir = $(datadir)/database
393 src/crontab/pakfire-build-service
396 src/tools/dump-database-schema.sh
398 # ------------------------------------------------------------------------------
401 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
402 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
403 '|configsdir=$(configsdir)|' \
404 '|bindir=$(bindir)|' \
405 '|datadir=$(datadir)|' \
406 '|localedir=$(localedir)|' \
407 '|templatesdir=$(templatesdir)|' \
408 '|staticdir=$(staticdir)|'
411 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
412 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
416 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
417 $(UGLIFYJS) --compress --mangle -- $< > $@
423 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
424 $(SASSC) --style compressed $< > $@
426 src/static/css/highlight.css: Makefile
427 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
428 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
433 # ------------------------------------------------------------------------------
436 $(dist_check_SCRIPTS)
438 TESTS_ENVIRONMENT = \
439 PYTHONPATH="$(abs_top_srcdir)/src" \
440 abs_top_srcdir="$(abs_top_srcdir)"
442 dist_check_SCRIPTS = \
456 tests/data/beep-1.3-2.ip3.src.pfm \
457 tests/data/beep-1.3-2.ip3.x86_64.pfm