############################################################################### # # # 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: po/POTFILES.in $(MAKE) -C po update-po po/POTFILES.in: Makefile find $(abs_srcdir)/src -not -path "$(abs_srcdir)/src/third-party/*" | \ grep -E "\.(html|py|txt)(\.in)?$$" | \ sed -e "s@$(abs_srcdir)/@@g" | \ LC_COLLATE=C sort > $@ 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-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/errors.py \ src/buildservice/events.py \ src/buildservice/httpclient.py \ src/buildservice/jobs.py \ src/buildservice/keys.py \ src/buildservice/logstreams.py \ src/buildservice/messages.py \ src/buildservice/mirrors.py \ src/buildservice/misc.py \ src/buildservice/packages.py \ src/buildservice/releasemonitoring.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 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/monitorings.py \ src/web/packages.py \ src/web/repos.py \ src/web/search.py \ src/web/sources.py \ src/web/ui_modules.py \ src/web/uploads.py \ src/web/users.py webdir = $(buildservicedir)/web # ------------------------------------------------------------------------------ dist_templates_DATA = \ src/templates/base.html \ src/templates/index.html \ src/templates/log.html \ src/templates/login.html \ src/templates/modal.html \ src/templates/search.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/edit.html \ src/templates/builders/index.html \ src/templates/builders/new.html \ src/templates/builders/show.html templates_buildersdir = $(templatesdir)/builders dist_templates_builders_modules_DATA = \ src/templates/builders/modules/stats.html templates_builders_modulesdir = $(templates_buildersdir)/modules dist_templates_builds_DATA = \ src/templates/builds/bug.html \ src/templates/builds/bug-created.html \ src/templates/builds/clone.html \ src/templates/builds/delete.html \ src/templates/builds/index.html \ src/templates/builds/queue.html \ src/templates/builds/show.html templates_buildsdir = $(templatesdir)/builds dist_templates_builds_groups_DATA = \ src/templates/builds/groups/show.html templates_builds_groupsdir = $(templates_buildsdir)/groups dist_templates_builds_groups_modules_DATA = \ src/templates/builds/groups/modules/list.html templates_builds_groups_modulesdir = $(templates_builds_groupsdir)/modules dist_templates_builds_messages_DATA = \ src/templates/builds/messages/comment.txt \ src/templates/builds/messages/failed.txt \ src/templates/builds/messages/finished.txt \ src/templates/builds/messages/test-builds-failed.txt templates_builds_messagesdir = $(templates_buildsdir)/messages dist_templates_builds_modules_DATA = \ src/templates/builds/modules/list.html \ src/templates/builds/modules/watchers.html templates_builds_modulesdir = $(templates_buildsdir)/modules dist_templates_builds_repos_DATA = \ src/templates/builds/repos/add.html \ src/templates/builds/repos/remove.html templates_builds_reposdir = $(templates_buildsdir)/repos dist_templates_distros_DATA = \ src/templates/distros/edit.html \ src/templates/distros/index.html \ src/templates/distros/show.html templates_distrosdir = $(templatesdir)/distros dist_templates_distros_modules_DATA = \ src/templates/distros/modules/list.html templates_distros_modulesdir = $(templates_distrosdir)/modules dist_templates_monitorings_DATA = \ src/templates/monitorings/delete.html \ src/templates/monitorings/edit.html \ src/templates/monitorings/show.html templates_monitoringsdir = $(templatesdir)/monitorings dist_templates_monitorings_modules_DATA = \ src/templates/monitorings/modules/releases-list.html templates_monitorings_modulesdir = $(templates_monitoringsdir)/modules dist_templates_errors_DATA = \ src/templates/errors/error.html templates_errorsdir = $(templatesdir)/errors templates_eventsdir = $(templatesdir)/events dist_templates_events_modules_DATA = \ src/templates/events/modules/list.html \ src/templates/events/modules/build-comment.html \ src/templates/events/modules/system-message.html \ src/templates/events/modules/user-message.html templates_events_modulesdir = $(templates_eventsdir)/modules dist_templates_jobs_DATA = \ src/templates/jobs/abort.html \ src/templates/jobs/log-stream.html \ src/templates/jobs/retry.html templates_jobsdir = $(templatesdir)/jobs dist_templates_jobs_messages_DATA = \ src/templates/jobs/messages/failed.txt templates_jobs_messagesdir = $(templates_jobsdir)/messages dist_templates_jobs_modules_DATA = \ src/templates/jobs/modules/list.html \ src/templates/jobs/modules/log-stream.html templates_jobs_modulesdir = $(templates_jobsdir)/modules templates_messagesdir = $(templatesdir)/messages dist_templates_mirrors_DATA = \ src/templates/mirrors/delete.html \ src/templates/mirrors/edit.html \ src/templates/mirrors/index.html \ src/templates/mirrors/show.html templates_mirrorsdir = $(templatesdir)/mirrors dist_templates_mirrors_modules_DATA = \ src/templates/mirrors/modules/list.html templates_mirrors_modulesdir = $(templates_mirrorsdir)/modules dist_templates_modules_DATA = \ src/templates/modules/commits-table.html \ src/templates/modules/commit-message.html \ src/templates/modules/link-to-user.html \ src/templates/modules/packages-files-table.html \ src/templates/modules/source-table.html \ src/templates/modules/text.html templates_modulesdir = $(templatesdir)/modules dist_templates_repos_DATA = \ src/templates/repos/create-custom.html \ src/templates/repos/builds.html \ src/templates/repos/delete.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_sources_DATA = \ src/templates/sources/show.html templates_sourcesdir = $(templatesdir)/sources dist_templates_sources_modules_DATA = \ src/templates/sources/modules/commits.html \ src/templates/sources/modules/list.html templates_sources_modulesdir = $(templates_sourcesdir)/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 \ src/templates/users/subscribe.html templates_usersdir = $(templatesdir)/users dist_templates_users_messages_DATA = \ src/templates/users/messages/welcome.txt templates_users_messagesdir = $(templates_usersdir)/messages dist_templates_users_modules_DATA = \ src/templates/users/modules/list.html \ src/templates/users/modules/push-subscribe-button.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/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/builders-stats.min.js \ src/static/js/jquery.min.js \ src/static/js/job-log-stream.min.js \ src/static/js/notification-worker.min.js \ src/static/js/pbs.min.js \ src/static/js/user-push-subscribe-button.min.js static_jsdir = $(staticdir)/js EXTRA_DIST += \ src/static/js/builders-stats.js \ src/static/js/job-log-stream.js \ src/static/js/notification-worker.js \ src/static/js/pbs.js \ src/static/js/user-push-subscribe-button.js CLEANFILES += \ $(static_js_DATA) 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-web.service CLEANFILES += \ $(systemdsystemunit_DATA) INSTALL_DIRS += \ $(systemdsystemunitdir) endif EXTRA_DIST += \ 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) # ------------------------------------------------------------------------------ TESTS = \ $(dist_check_SCRIPTS) TESTS_ENVIRONMENT = \ PYTHONPATH="$(abs_top_srcdir)/src" \ abs_top_srcdir="$(abs_top_srcdir)" dist_check_SCRIPTS = \ tests/setup.py \ tests/build.py \ tests/builder.py \ tests/distro.py \ tests/message.py \ tests/package.py \ tests/repo.py \ tests/upload.py EXTRA_DIST += \ tests/test.py EXTRA_DIST += \ tests/data/beep-1.3-2.ip3.src.pfm \ tests/data/beep-1.3-2.ip3.x86_64.pfm