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