]> git.ipfire.org Git - people/jschlag/pbs.git/blame - Makefile.am
Remaster repositories every 5 minutes
[people/jschlag/pbs.git] / Makefile.am
CommitLineData
7c17bfff
MT
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
21ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
22AM_MAKEFLAGS = --no-print-directory
23AUTOMAKE_OPTIONS = color-tests
24
25# remove target it the command fails
26.DELETE_ON_ERROR:
27
28# keep itermediate files
29.SECONDARY:
30
31SUBDIRS = . po
32
33pythondir = $(pyexecdir)/pakfire
34
35configsdir = $(sysconfdir)/pakfire
36
3e8c8603 37BUILT_SOURCES =
7c17bfff
MT
38CLEANFILES =
39DISTCLEANFILES =
40EXTRA_DIST =
41INSTALL_DIRS =
42noinst_DATA =
43
44@INTLTOOL_POLICY_RULE@
45
46.PHONY: update-po
47update-po:
48 $(MAKE) -C po update-po
49
50DISTCHECK_CONFIGURE_FLAGS = \
51 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
52
53# ------------------------------------------------------------------------------
54
55AM_V_XSLT = $(AM_V_XSLT_$(V))
56AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
57AM_V_XSLT_0 = @echo " XSLT " $@;
58
59# ------------------------------------------------------------------------------
60
61dist_doc_DATA = \
d3e7a9fb
MT
62 COPYING \
63 README
7c17bfff
MT
64
65# ------------------------------------------------------------------------------
66
67dist_bin_SCRIPTS = \
43025dca 68 src/scripts/pakfire-build-service \
7c17bfff
MT
69 src/scripts/pakfire-hub \
70 src/scripts/pakfire-manager \
71 src/scripts/pakfire-web
72
73dist_configs_DATA = \
74 pbs.conf.sample
75
76buildservice_PYTHON = \
455cd7d1
MT
77 src/buildservice/__init__.py \
78 src/buildservice/__version__.py \
7c17bfff
MT
79 src/buildservice/arches.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 \
012035e0 87 src/buildservice/decorators.py \
7c17bfff 88 src/buildservice/distribution.py \
d3e7a9fb 89 src/buildservice/geoip.py \
7c17bfff 90 src/buildservice/git.py \
fd43d5e1 91 src/buildservice/jobqueue.py \
7c17bfff
MT
92 src/buildservice/keys.py \
93 src/buildservice/logs.py \
7c17bfff
MT
94 src/buildservice/messages.py \
95 src/buildservice/mirrors.py \
96 src/buildservice/misc.py \
97 src/buildservice/packages.py \
98 src/buildservice/repository.py \
99 src/buildservice/scheduler.py \
100 src/buildservice/sessions.py \
101 src/buildservice/settings.py \
102 src/buildservice/sources.py \
103 src/buildservice/updates.py \
104 src/buildservice/uploads.py \
105 src/buildservice/users.py
106
107buildservicedir = $(pythondir)/buildservice
108
3e8c8603
MT
109BUILT_SOURCES += \
110 src/buildservice/constants.py
111
56cba8c7
MT
112EXTRA_DIST += \
113 src/buildservice/constants.py.in
114
115CLEANFILES += \
116 src/buildservice/constants.py
117
7c17bfff
MT
118hub_PYTHON = \
119 src/hub/__init__.py \
120 src/hub/handlers.py
121
122hubdir = $(buildservicedir)/hub
123
124manager_PYTHON = \
125 src/manager/__init__.py \
126 src/manager/base.py \
9729c5b3 127 src/manager/builds.py
7c17bfff
MT
128
129managerdir = $(buildservicedir)/manager
130
131web_PYTHON = \
132 src/web/__init__.py \
133 src/web/handlers.py \
134 src/web/handlers_api.py \
135 src/web/handlers_auth.py \
136 src/web/handlers_base.py \
137 src/web/handlers_builders.py \
138 src/web/handlers_builds.py \
139 src/web/handlers_distro.py \
140 src/web/handlers_jobs.py \
141 src/web/handlers_keys.py \
142 src/web/handlers_mirrors.py \
143 src/web/handlers_packages.py \
144 src/web/handlers_search.py \
145 src/web/handlers_updates.py \
146 src/web/handlers_users.py \
147 src/web/ui_modules.py
148
149webdir = $(buildservicedir)/web
150
151# ------------------------------------------------------------------------------
152
153dist_templates_DATA = \
154 src/templates/base-form1.html \
155 src/templates/base-form2.html \
156 src/templates/base.html \
157 src/templates/build-bugs.html \
158 src/templates/build-delete.html \
159 src/templates/build-detail.html \
160 src/templates/build-filter.html \
161 src/templates/build-index.html \
162 src/templates/build-list.html \
163 src/templates/build-manage.html \
164 src/templates/build-priority.html \
165 src/templates/build-queue.html \
166 src/templates/build-schedule-test.html \
167 src/templates/build-state.html \
168 src/templates/builds-watchers-add.html \
169 src/templates/builds-watchers-list.html \
170 src/templates/distro-detail.html \
171 src/templates/distro-edit.html \
172 src/templates/distro-list.html \
173 src/templates/distro-source-commit-detail.html \
174 src/templates/distro-source-commit-reset.html \
175 src/templates/distro-source-commits.html \
176 src/templates/distro-source-detail.html \
177 src/templates/distro-update-detail.html \
178 src/templates/distro-update-edit.html \
179 src/templates/docs-base.html \
180 src/templates/docs-build.html \
181 src/templates/docs-index.html \
182 src/templates/docs-users.html \
183 src/templates/docs-whatsthis.html \
184 src/templates/file-detail.html \
185 src/templates/index.html \
186 src/templates/jobs-abort.html \
187 src/templates/jobs-buildroot.html \
188 src/templates/job-schedule-rebuild.html \
189 src/templates/job-schedule-test.html \
190 src/templates/jobs-detail.html \
191 src/templates/jobs-filter.html \
192 src/templates/jobs-index.html \
193 src/templates/keys-delete.html \
194 src/templates/keys-import.html \
195 src/templates/keys-list.html \
196 src/templates/log.html \
197 src/templates/login.html \
198 src/templates/mirrors-delete.html \
199 src/templates/mirrors-detail.html \
200 src/templates/mirrors-edit.html \
201 src/templates/mirrors-list.html \
202 src/templates/mirrors-new.html \
203 src/templates/package-detail.html \
204 src/templates/package-detail-list.html \
205 src/templates/package-properties.html \
206 src/templates/packages-list.html \
207 src/templates/register-activation-fail.html \
208 src/templates/register-activation-success.html \
209 src/templates/register-fail.html \
210 src/templates/register.html \
211 src/templates/register-success.html \
212 src/templates/repository-detail.html \
213 src/templates/repository-edit.html \
214 src/templates/search-form.html \
215 src/templates/search-results.html \
216 src/templates/source-list.html \
217 src/templates/updates-index.html \
218 src/templates/uploads-list.html \
219 src/templates/user-comments.html \
220 src/templates/user-delete.html \
221 src/templates/user-forgot-password.html \
222 src/templates/user-impersonation.html \
223 src/templates/user-list.html \
224 src/templates/user-profile-builds.html \
225 src/templates/user-profile-edit-fail.html \
226 src/templates/user-profile-edit.html \
227 src/templates/user-profile.html \
228 src/templates/user-profile-need-activation.html \
229 src/templates/user-profile-passwd.html \
230 src/templates/user-profile-passwd-ok.html
231
232templatesdir = $(datadir)/templates
233
234dist_templates_builders_DATA = \
235 src/templates/builders/delete.html \
236 src/templates/builders/detail.html \
237 src/templates/builders/edit.html \
238 src/templates/builders/list.html \
239 src/templates/builders/new.html \
240 src/templates/builders/pass.html
241
242templates_buildersdir = $(templatesdir)/builders
243
244dist_templates_builds_DATA = \
245 src/templates/builds/comments.html
246
247templates_buildsdir = $(templatesdir)/builds
248
249dist_templates_errors_DATA = \
250 src/templates/errors/error.html \
251 src/templates/errors/error-400.html \
252 src/templates/errors/error-403.html \
253 src/templates/errors/error-404.html
254
255templates_errorsdir = $(templatesdir)/errors
256
257dist_templates_modules_DATA = \
258 src/templates/modules/bugs-table.html \
259 src/templates/modules/build-headline.html \
260 src/templates/modules/build-log.html \
261 src/templates/modules/build-offset.html \
262 src/templates/modules/build-state-warnings.html \
263 src/templates/modules/build-table.html \
264 src/templates/modules/comments-table.html \
265 src/templates/modules/commits-table.html \
266 src/templates/modules/files-table.html \
267 src/templates/modules/footer.html \
268 src/templates/modules/jobs-table.html \
269 src/templates/modules/log-entry-comment.html \
270 src/templates/modules/log-entry.html \
271 src/templates/modules/log-entry-small.html \
272 src/templates/modules/log-files-table.html \
273 src/templates/modules/log.html \
274 src/templates/modules/log-table.html \
275 src/templates/modules/maintainer.html \
276 src/templates/modules/modal-base.html \
277 src/templates/modules/modal-build-comment.html \
278 src/templates/modules/modal-build-push.html \
279 src/templates/modules/modal-build-unpush.html \
280 src/templates/modules/package-header.html \
281 src/templates/modules/packages-files-table.html \
282 src/templates/modules/packages-table.html \
283 src/templates/modules/package-table-detail.html \
284 src/templates/modules/repo-actions-table.html \
285 src/templates/modules/repository-table.html \
286 src/templates/modules/source-table.html \
287 src/templates/modules/updates-table.html \
288 src/templates/modules/user-table.html \
289 src/templates/modules/watchers-sidebar-table.html
290
291templates_modulesdir = $(templatesdir)/modules
292
293dist_templates_modules_builders_DATA = \
294 src/templates/modules/builders/load.html
295
296templates_modules_buildersdir = $(templates_modulesdir)/builders
297
298dist_templates_modules_changelog_DATA = \
299 src/templates/modules/changelog/entry.html \
300 src/templates/modules/changelog/index.html
301
302templates_modules_changelogdir = $(templates_modulesdir)/changelog
303
304dist_templates_modules_jobs_DATA = \
305 src/templates/modules/jobs/boxes.html \
306 src/templates/modules/jobs/list.html \
307 src/templates/modules/jobs/status.html
308
309templates_modules_jobsdir = $(templates_modulesdir)/jobs
310
311dist_templates_modules_packages_DATA = \
312 src/templates/modules/packages/dependency-table.html
313
314templates_modules_packagesdir = $(templates_modulesdir)/packages
315
316dist_templates_modules_select_DATA = \
317 src/templates/modules/select/locale.html \
318 src/templates/modules/select/timezone.html
319
320templates_modules_selectdir = $(templates_modulesdir)/select
321
322dist_templates_packages_DATA = \
323 src/templates/packages/changelog.html \
324 src/templates/packages/view-file.html
325
326templates_packagesdir = $(templatesdir)/packages
327
328dist_templates_packages_builds_DATA = \
329 src/templates/packages/builds/scratch.html \
330 src/templates/packages/builds/times.html
331
332templates_packages_buildsdir = $(templates_packagesdir)/builds
333
334dist_templates_sessions_DATA = \
335 src/templates/sessions/index.html
336
337templates_sessionsdir = $(templatesdir)/sessions
338
339dist_templates_statistics_DATA = \
340 src/templates/statistics/index.html
341
342templates_statisticsdir = $(templatesdir)/statistics
343
344# ------------------------------------------------------------------------------
345#
346dist_static_DATA = \
347 src/static/favicon.ico \
348 src/static/robots.txt
349
350staticdir = $(datadir)/static
351
352dist_static_css_DATA = \
353 src/static/css/bootstrap-responsive.min.css \
354 src/static/css/bootstrap.min.css \
355 src/static/css/build-table.css \
356 src/static/css/commits-table.css \
357 src/static/css/font-awesome.css \
358 src/static/css/jobs-list.css \
359 src/static/css/jobs-table.css \
360 src/static/css/log.css \
361 src/static/css/packages-files-table.css \
362 src/static/css/packages-table.css \
363 src/static/css/prettify.css \
364 src/static/css/style.css \
365 src/static/css/watchers-sidebar-table.css
366
367static_cssdir = $(staticdir)/css
368
369dist_static_font_DATA = \
370 src/static/font/fontawesome-webfont.eot \
371 src/static/font/fontawesome-webfont.svg \
372 src/static/font/fontawesome-webfont.ttf \
373 src/static/font/fontawesome-webfont.woff
374
f08f0c0b 375static_fontdir = $(staticdir)/font
7c17bfff
MT
376
377dist_static_images_DATA = \
378 src/static/images/icons/build-dependency_error.png \
379 src/static/images/icons/build-dispatching.png \
380 src/static/images/icons/build-failed.png \
381 src/static/images/icons/build-finished.png \
382 src/static/images/icons/build-pending.png \
383 src/static/images/icons/build-running.png \
384 src/static/images/icons/build-unknown.png \
385 src/static/images/icons/build-uploading.png \
386 src/static/images/icons/build-waiting.png \
387 src/static/images/icons/builder-disabled.png \
388 src/static/images/img01.jpg \
389 src/static/images/img02.jpg \
390 src/static/images/img03.jpg \
391 src/static/images/img04.jpg \
392 src/static/images/ipfire_tux_128x128.png \
393 src/static/images/readme.txt
394
395static_imagesdir = $(staticdir)/images
396
397dist_static_js_DATA = \
398 src/static/js/bootstrap.min.js \
399 src/static/js/jquery.js \
400 src/static/js/pbs.js \
401 src/static/js/prettify.js
402
403static_jsdir = $(staticdir)/js
404
405# ------------------------------------------------------------------------------
406
576ff900
JS
407EXTRA_DIST += \
408 Dockerfile.in
409
410docker_DATA = \
411 Dockerfile
412
9712aacf
MT
413CLEANFILES += \
414 Dockerfile
415
576ff900
JS
416dockerdir = $(datadir)/docker
417
418.PHONY: docker
419docker: Dockerfile
420 docker build -t "ipfire/pakfire-build-service:$(PACKAGE_VERSION)" .
421
422# ------------------------------------------------------------------------------
423
7c17bfff
MT
424if HAVE_SYSTEMD
425systemdsystemunit_DATA = \
426 # TODO
427
428CLEANFILES += \
429 $(systemdsystemunit_DATA)
430
431INSTALL_DIRS += \
432 $(systemdsystemunitdir)
433endif
434
435EXTRA_DIST += \
436 # TODO
437
438dist_database_DATA = \
439 src/database.sql
440
441databasedir = $(datadir)/database
442
443dist_cron_DATA = \
444 src/crontab/pakfire-build-service
445
446crondir = $(sysconfdir)/cron.d
447
d3e7a9fb
MT
448dist_geoip_DATA = \
449 src/geoip/GeoLite2-Country.mmdb
450
451geoipdir = $(datadir)/geoip
452
453EXTRA_DIST += \
f291c971 454 src/tools/dump-database-schema.sh \
d3e7a9fb
MT
455 src/tools/update-geoip-database.sh
456
7c17bfff
MT
457# ------------------------------------------------------------------------------
458
459substitutions = \
460 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
461 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
462 '|configsdir=$(configsdir)|' \
56cba8c7 463 '|bindir=$(bindir)|' \
2b5a3b4d 464 '|datadir=$(datadir)|' \
027a662e
MT
465 '|localedir=$(localedir)|' \
466 '|templatesdir=$(templatesdir)|' \
467 '|staticdir=$(staticdir)|'
7c17bfff
MT
468
469SED_PROCESS = \
470 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
471 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
472 < $< > $@
473
474%: %.in Makefile
475 $(SED_PROCESS)