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