############################################################################### # # # Pakfire - The IPFire package management system # # Copyright (C) 2017 Pakfire development team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # # the Free Software Foundation, either version 3 of the License, or # # (at your option) any later version. # # # # This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with this program. If not, see . # # # ############################################################################### ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} AM_MAKEFLAGS = --no-print-directory AUTOMAKE_OPTIONS = color-tests # remove target it the command fails .DELETE_ON_ERROR: # keep itermediate files .SECONDARY: SUBDIRS = . po pythondir = $(pyexecdir)/pakfire configsdir = $(sysconfdir)/pakfire crondir = $(sysconfdir)/cron.d BUILT_SOURCES = CLEANFILES = DISTCLEANFILES = EXTRA_DIST = INSTALL_DIRS = noinst_DATA = @INTLTOOL_POLICY_RULE@ .PHONY: update-po update-po: $(MAKE) -C po update-po DISTCHECK_CONFIGURE_FLAGS = \ --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) # ------------------------------------------------------------------------------ AM_V_XSLT = $(AM_V_XSLT_$(V)) AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY)) AM_V_XSLT_0 = @echo " XSLT " $@; # ------------------------------------------------------------------------------ dist_doc_DATA = \ COPYING \ README # ------------------------------------------------------------------------------ dist_bin_SCRIPTS = \ src/scripts/pakfire-build-service \ src/scripts/pakfire-hub \ src/scripts/pakfire-web dist_configs_DATA = \ pbs.conf.sample buildservice_PYTHON = \ src/buildservice/__init__.py \ src/buildservice/__version__.py \ src/buildservice/aws.py \ src/buildservice/base.py \ src/buildservice/bugtracker.py \ src/buildservice/builders.py \ src/buildservice/builds.py \ src/buildservice/cache.py \ src/buildservice/config.py \ src/buildservice/constants.py \ src/buildservice/database.py \ src/buildservice/decorators.py \ src/buildservice/distribution.py \ src/buildservice/events.py \ src/buildservice/git.py \ src/buildservice/jobqueue.py \ src/buildservice/jobs.py \ src/buildservice/keys.py \ src/buildservice/ldap.py \ src/buildservice/logs.py \ src/buildservice/messages.py \ src/buildservice/mirrors.py \ src/buildservice/misc.py \ src/buildservice/packages.py \ src/buildservice/repository.py \ src/buildservice/sessions.py \ src/buildservice/settings.py \ src/buildservice/sources.py \ src/buildservice/uploads.py \ src/buildservice/users.py buildservicedir = $(pythondir)/buildservice BUILT_SOURCES += \ src/buildservice/constants.py EXTRA_DIST += \ src/buildservice/constants.py.in CLEANFILES += \ src/buildservice/constants.py hub_PYTHON = \ src/hub/__init__.py \ src/hub/builds.py \ src/hub/handlers.py \ src/hub/jobs.py \ src/hub/queue.py \ src/hub/uploads.py hubdir = $(buildservicedir)/hub web_PYTHON = \ src/web/__init__.py \ src/web/auth.py \ src/web/base.py \ src/web/bugs.py \ src/web/builders.py \ src/web/builds.py \ src/web/distributions.py \ src/web/errors.py \ src/web/events.py \ src/web/handlers.py \ src/web/jobs.py \ src/web/keys.py \ src/web/mirrors.py \ src/web/packages.py \ src/web/repos.py \ src/web/search.py \ src/web/ui_modules.py \ src/web/users.py webdir = $(buildservicedir)/web # ------------------------------------------------------------------------------ dist_templates_DATA = \ src/templates/base.html \ src/templates/build-delete.html \ src/templates/build-manage.html \ src/templates/build-schedule-test.html \ src/templates/build-state.html \ src/templates/builds-watchers-add.html \ src/templates/builds-watchers-list.html \ src/templates/distro-edit.html \ src/templates/distro-source-commit-detail.html \ src/templates/distro-source-commit-reset.html \ src/templates/distro-source-commits.html \ src/templates/distro-source-detail.html \ src/templates/distro-update-detail.html \ src/templates/distro-update-edit.html \ src/templates/file-detail.html \ src/templates/index.html \ src/templates/jobs-abort.html \ src/templates/jobs-buildroot.html \ src/templates/log.html \ src/templates/login.html \ src/templates/package-properties.html \ src/templates/queue.html \ src/templates/search.html \ src/templates/source-list.html templatesdir = $(datadir)/templates templates_bugsdir = $(templatesdir)/bugs dist_templates_bugs_modules_DATA = \ src/templates/bugs/modules/list.html templates_bugs_modulesdir = $(templates_bugsdir)/modules dist_templates_builders_DATA = \ src/templates/builders/delete.html \ src/templates/builders/detail.html \ src/templates/builders/edit.html \ src/templates/builders/list.html \ src/templates/builders/new.html templates_buildersdir = $(templatesdir)/builders dist_templates_builds_DATA = \ src/templates/builds/index.html \ src/templates/builds/show.html templates_buildsdir = $(templatesdir)/builds dist_templates_builds_modules_DATA = \ src/templates/builds/modules/list.html templates_builds_modulesdir = $(templates_buildsdir)/modules dist_templates_distros_DATA = \ src/templates/distros/index.html \ src/templates/distros/show.html templates_distrosdir = $(templatesdir)/distros dist_templates_errors_DATA = \ src/templates/errors/error.html \ src/templates/errors/error-400.html \ src/templates/errors/error-403.html \ src/templates/errors/error-404.html templates_errorsdir = $(templatesdir)/errors templates_eventsdir = $(templatesdir)/events dist_templates_events_modules_DATA = \ src/templates/events/modules/list.html \ src/templates/events/modules/system-message.html \ src/templates/events/modules/user-message.html templates_events_modulesdir = $(templates_eventsdir)/modules templates_messagesdir = $(templatesdir)/messages dist_templates_messages_builds_DATA = \ src/templates/messages/builds/new-comment.markdown templates_messages_buildsdir = $(templates_messagesdir)/builds dist_templates_messages_jobs_DATA = \ src/templates/messages/jobs/failed.markdown \ src/templates/messages/jobs/finished.markdown templates_messages_jobsdir = $(templates_messagesdir)/jobs dist_templates_messages_users_DATA = \ src/templates/messages/users/email-activation.markdown templates_messages_usersdir = $(templates_messagesdir)/users dist_templates_mirrors_DATA = \ src/templates/mirrors/delete.html \ src/templates/mirrors/detail.html \ src/templates/mirrors/edit.html \ src/templates/mirrors/list.html \ src/templates/mirrors/new.html templates_mirrorsdir = $(templatesdir)/mirrors dist_templates_modules_DATA = \ src/templates/modules/build-headline.html \ src/templates/modules/build-log.html \ src/templates/modules/build-offset.html \ src/templates/modules/build-state-warnings.html \ src/templates/modules/build-table.html \ src/templates/modules/commits-table.html \ src/templates/modules/commit-message.html \ src/templates/modules/files-table.html \ src/templates/modules/jobs-table.html \ src/templates/modules/link-to-user.html \ src/templates/modules/log-entry-comment.html \ src/templates/modules/log-entry.html \ src/templates/modules/log-entry-small.html \ src/templates/modules/log-files-table.html \ src/templates/modules/log.html \ src/templates/modules/log-table.html \ src/templates/modules/modal-base.html \ src/templates/modules/modal-build-comment.html \ src/templates/modules/modal-build-push.html \ src/templates/modules/modal-build-unpush.html \ src/templates/modules/package-header.html \ src/templates/modules/packages-files-table.html \ src/templates/modules/packages-table.html \ src/templates/modules/package-table-detail.html \ src/templates/modules/repo-actions-table.html \ src/templates/modules/source-table.html \ src/templates/modules/text.html \ src/templates/modules/watchers-sidebar-table.html templates_modulesdir = $(templatesdir)/modules dist_templates_modules_jobs_DATA = \ src/templates/modules/jobs/list.html \ src/templates/modules/jobs/status.html templates_modules_jobsdir = $(templates_modulesdir)/jobs dist_templates_modules_select_DATA = \ src/templates/modules/select/locale.html \ src/templates/modules/select/timezone.html templates_modules_selectdir = $(templates_modulesdir)/select dist_templates_repos_DATA = \ src/templates/repos/create-custom.html \ src/templates/repos/builds.html \ src/templates/repos/edit.html \ src/templates/repos/show.html templates_reposdir = $(templatesdir)/repos dist_templates_repos_modules_DATA = \ src/templates/repos/modules/list.html templates_repos_modulesdir = $(templates_reposdir)/modules dist_templates_packages_DATA = \ src/templates/packages/index.html \ src/templates/packages/name.html \ src/templates/packages/show.html \ src/templates/packages/view-file.html templates_packagesdir = $(templatesdir)/packages dist_templates_packages_modules_DATA = \ src/templates/packages/modules/dependencies.html \ src/templates/packages/modules/info.html templates_packages_modulesdir = $(templates_packagesdir)/modules dist_templates_users_DATA = \ src/templates/users/delete.html \ src/templates/users/edit.html \ src/templates/users/index.html \ src/templates/users/show.html templates_usersdir = $(templatesdir)/users dist_templates_users_modules_DATA = \ src/templates/users/modules/list.html templates_users_modulesdir = $(templates_usersdir)/modules # ------------------------------------------------------------------------------ # dist_static_DATA = \ src/static/favicon.ico \ src/static/robots.txt staticdir = $(datadir)/static static_css_DATA = \ src/static/css/highlight.css \ src/static/css/site.css static_cssdir = $(staticdir)/css EXTRA_DIST += \ src/static/css/_fonts.scss \ src/static/css/_icons.scss \ src/static/css/site.scss CLEANFILES += \ src/static/css/site.css static_js_DATA = \ src/static/js/foundation.min.js \ src/static/js/jquery.min.js \ src/static/js/pbs.js \ src/static/js/prettify.js static_jsdir = $(staticdir)/js CLEANFILES += \ src/static/js/foundation.min.js \ src/static/js/jquery.min.js dist_static_fonts_DATA = \ src/third-party/fonts/prompt/OFL.txt \ src/third-party/fonts/prompt/Prompt-Black.ttf \ src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \ src/third-party/fonts/prompt/Prompt-Bold.ttf \ src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \ src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \ src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \ src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \ src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \ src/third-party/fonts/prompt/Prompt-Italic.ttf \ src/third-party/fonts/prompt/Prompt-Light.ttf \ src/third-party/fonts/prompt/Prompt-LightItalic.ttf \ src/third-party/fonts/prompt/Prompt-Medium.ttf \ src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \ src/third-party/fonts/prompt/Prompt-Regular.ttf \ src/third-party/fonts/prompt/Prompt-SemiBold.ttf \ src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \ src/third-party/fonts/prompt/Prompt-Thin.ttf \ src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \ src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \ src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \ src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \ src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \ src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \ src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2 static_fontsdir = $(staticdir)/fonts # ------------------------------------------------------------------------------ if HAVE_SYSTEMD systemdsystemunit_DATA = \ src/systemd/pakfire-hub.service \ src/systemd/pakfire-web.service CLEANFILES += \ $(systemdsystemunit_DATA) INSTALL_DIRS += \ $(systemdsystemunitdir) endif EXTRA_DIST += \ src/systemd/pakfire-hub.service.in \ src/systemd/pakfire-web.service.in dist_database_DATA = \ src/database.sql databasedir = $(datadir)/database dist_cron_DATA = \ src/crontab/pakfire-build-service EXTRA_DIST += \ src/tools/dump-database-schema.sh # ------------------------------------------------------------------------------ substitutions = \ '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ '|configsdir=$(configsdir)|' \ '|bindir=$(bindir)|' \ '|datadir=$(datadir)|' \ '|localedir=$(localedir)|' \ '|templatesdir=$(templatesdir)|' \ '|staticdir=$(staticdir)|' SED_PROCESS = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ < $< > $@ UGLIFYJS_PROCESS = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(UGLIFYJS) --compress --mangle -- $< > $@ %: %.in Makefile $(SED_PROCESS) %.css: %.scss $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(SASSC) --style compressed $< > $@ src/static/css/highlight.css: Makefile $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(PYGMENTIZE) -S xcode -f html -a .highlight > $@ %.min.js: %.js $(UGLIFYJS_PROCESS) src/static/js/foundation.min.js: src/third-party/foundation-sites/dist/js/foundation.js $(UGLIFYJS_PROCESS) # ------------------------------------------------------------------------------ TESTS = \ $(dist_check_SCRIPTS) TESTS_ENVIRONMENT = \ PYTHONPATH="$(abs_top_srcdir)/src" \ abs_top_srcdir="$(abs_top_srcdir)" dist_check_SCRIPTS = \ tests/setup.py EXTRA_DIST += \ tests/test.py