]> git.ipfire.org Git - pbs.git/blob - Makefile.am
web: Drop BuildTable module and dependant modules
[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: po/POTFILES.in
49 $(MAKE) -C po update-po
50
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 > $@
56
57 DISTCHECK_CONFIGURE_FLAGS = \
58 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
59
60 # ------------------------------------------------------------------------------
61
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 " $@;
65
66 # ------------------------------------------------------------------------------
67
68 dist_doc_DATA = \
69 COPYING \
70 README
71
72 # ------------------------------------------------------------------------------
73
74 dist_bin_SCRIPTS = \
75 src/scripts/pakfire-build-service \
76 src/scripts/pakfire-hub \
77 src/scripts/pakfire-web
78
79 dist_configs_DATA = \
80 pbs.conf.sample
81
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
112
113 buildservicedir = $(pythondir)/buildservice
114
115 BUILT_SOURCES += \
116 src/buildservice/constants.py
117
118 EXTRA_DIST += \
119 src/buildservice/constants.py.in
120
121 CLEANFILES += \
122 src/buildservice/constants.py
123
124 hub_PYTHON = \
125 src/hub/__init__.py \
126 src/hub/builds.py \
127 src/hub/handlers.py \
128 src/hub/jobs.py \
129 src/hub/queue.py \
130 src/hub/uploads.py
131
132 hubdir = $(buildservicedir)/hub
133
134 web_PYTHON = \
135 src/web/__init__.py \
136 src/web/auth.py \
137 src/web/base.py \
138 src/web/bugs.py \
139 src/web/builders.py \
140 src/web/builds.py \
141 src/web/distributions.py \
142 src/web/errors.py \
143 src/web/events.py \
144 src/web/handlers.py \
145 src/web/jobs.py \
146 src/web/keys.py \
147 src/web/mirrors.py \
148 src/web/packages.py \
149 src/web/repos.py \
150 src/web/search.py \
151 src/web/ui_modules.py \
152 src/web/users.py
153
154 webdir = $(buildservicedir)/web
155
156 # ------------------------------------------------------------------------------
157
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
172
173 templatesdir = $(datadir)/templates
174
175 templates_bugsdir = $(templatesdir)/bugs
176
177 dist_templates_bugs_modules_DATA = \
178 src/templates/bugs/modules/list.html
179
180 templates_bugs_modulesdir = $(templates_bugsdir)/modules
181
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
188
189 templates_buildersdir = $(templatesdir)/builders
190
191 dist_templates_builds_DATA = \
192 src/templates/builds/delete.html \
193 src/templates/builds/index.html \
194 src/templates/builds/show.html
195
196 templates_buildsdir = $(templatesdir)/builds
197
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
202
203 templates_builds_messagesdir = $(templates_buildsdir)/messages
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
219 templates_errorsdir = $(templatesdir)/errors
220
221 templates_eventsdir = $(templatesdir)/events
222
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
228
229 templates_events_modulesdir = $(templates_eventsdir)/modules
230
231 templates_jobsdir = $(templatesdir)/jobs
232
233 dist_templates_jobs_messages_DATA = \
234 src/templates/jobs/messages/failed.txt
235
236 templates_jobs_messagesdir = $(templates_jobsdir)/messages
237
238 templates_messagesdir = $(templatesdir)/messages
239
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
246
247 templates_mirrorsdir = $(templatesdir)/mirrors
248
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
256 templates_modulesdir = $(templatesdir)/modules
257
258 dist_templates_modules_jobs_DATA = \
259 src/templates/modules/jobs/list.html
260
261 templates_modules_jobsdir = $(templates_modulesdir)/jobs
262
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
268
269 templates_reposdir = $(templatesdir)/repos
270
271 dist_templates_repos_modules_DATA = \
272 src/templates/repos/modules/list.html
273
274 templates_repos_modulesdir = $(templates_reposdir)/modules
275
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
281
282 templates_packagesdir = $(templatesdir)/packages
283
284 dist_templates_packages_modules_DATA = \
285 src/templates/packages/modules/dependencies.html \
286 src/templates/packages/modules/info.html
287
288 templates_packages_modulesdir = $(templates_packagesdir)/modules
289
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
295
296 templates_usersdir = $(templatesdir)/users
297
298 dist_templates_users_messages_DATA = \
299 src/templates/users/messages/welcome.txt
300
301 templates_users_messagesdir = $(templates_usersdir)/messages
302
303 dist_templates_users_modules_DATA = \
304 src/templates/users/modules/list.html
305
306 templates_users_modulesdir = $(templates_usersdir)/modules
307
308 # ------------------------------------------------------------------------------
309 #
310 dist_static_DATA = \
311 src/static/favicon.ico \
312 src/static/robots.txt
313
314 staticdir = $(datadir)/static
315
316 static_css_DATA = \
317 src/static/css/highlight.css \
318 src/static/css/site.css
319
320 static_cssdir = $(staticdir)/css
321
322 EXTRA_DIST += \
323 src/static/css/_fonts.scss \
324 src/static/css/_icons.scss \
325 src/static/css/site.scss
326
327 CLEANFILES += \
328 src/static/css/site.css
329
330 static_js_DATA = \
331 src/static/js/jquery.min.js \
332 src/static/js/pbs.js \
333 src/static/js/prettify.js
334
335 static_jsdir = $(staticdir)/js
336
337 CLEANFILES += \
338 src/static/js/jquery.min.js
339
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
366
367 static_fontsdir = $(staticdir)/fonts
368
369 # ------------------------------------------------------------------------------
370
371 if HAVE_SYSTEMD
372 systemdsystemunit_DATA = \
373 src/systemd/pakfire-hub.service \
374 src/systemd/pakfire-web.service
375
376 CLEANFILES += \
377 $(systemdsystemunit_DATA)
378
379 INSTALL_DIRS += \
380 $(systemdsystemunitdir)
381 endif
382
383 EXTRA_DIST += \
384 src/systemd/pakfire-hub.service.in \
385 src/systemd/pakfire-web.service.in
386
387 dist_database_DATA = \
388 src/database.sql
389
390 databasedir = $(datadir)/database
391
392 dist_cron_DATA = \
393 src/crontab/pakfire-build-service
394
395 EXTRA_DIST += \
396 src/tools/dump-database-schema.sh
397
398 # ------------------------------------------------------------------------------
399
400 substitutions = \
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)|'
409
410 SED_PROCESS = \
411 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
412 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
413 < $< > $@
414
415 UGLIFYJS_PROCESS = \
416 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
417 $(UGLIFYJS) --compress --mangle -- $< > $@
418
419 %: %.in Makefile
420 $(SED_PROCESS)
421
422 %.css: %.scss
423 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
424 $(SASSC) --style compressed $< > $@
425
426 src/static/css/highlight.css: Makefile
427 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
428 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
429
430 %.min.js: %.js
431 $(UGLIFYJS_PROCESS)
432
433 # ------------------------------------------------------------------------------
434
435 TESTS = \
436 $(dist_check_SCRIPTS)
437
438 TESTS_ENVIRONMENT = \
439 PYTHONPATH="$(abs_top_srcdir)/src" \
440 abs_top_srcdir="$(abs_top_srcdir)"
441
442 dist_check_SCRIPTS = \
443 tests/setup.py \
444 tests/build.py \
445 tests/builder.py \
446 tests/distro.py \
447 tests/message.py \
448 tests/package.py \
449 tests/repo.py \
450 tests/upload.py
451
452 EXTRA_DIST += \
453 tests/test.py
454
455 EXTRA_DIST += \
456 tests/data/beep-1.3-2.ip3.src.pfm \
457 tests/data/beep-1.3-2.ip3.x86_64.pfm