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