#!/usr/bin/make AM_MAKEFLAGS = --no-print-directory AUTOMAKE_OPTIONS = color-tests # remove target it the command fails .DELETE_ON_ERROR: # keep itermediate files .SECONDARY: pythondir = $(pyexecdir) configsdir = $(sysconfdir)/ipfire.org crondir = $(sysconfdir)/cron.d CLEANFILES = DISTCLEANFILES = EXTRA_DIST = INSTALL_DIRS = noinst_DATA = DISTCHECK_CONFIGURE_FLAGS = \ --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) # ------------------------------------------------------------------------------ bin_SCRIPTS = \ src/scripts/ipfire.org \ src/scripts/ipfire.org-webapp EXTRA_DIST += \ src/scripts/ipfire.org.in \ src/scripts/ipfire.org-webapp.in CLEANFILES += \ src/scripts/ipfire.org \ src/scripts/ipfire.org-webapp configs_DATA = \ ipfire.org.conf.sample EXTRA_DIST += \ ipfire.org.conf.sample.in CLEANFILES += \ ipfire.org.conf.sample backend_PYTHON = \ src/backend/__init__.py \ src/backend/accounts.py \ src/backend/base.py \ src/backend/blog.py \ src/backend/countries.py \ src/backend/database.py \ src/backend/decorators.py \ src/backend/fireinfo.py \ src/backend/geoip.py \ src/backend/iuse.py \ src/backend/mirrors.py \ src/backend/misc.py \ src/backend/netboot.py \ src/backend/nopaste.py \ src/backend/releases.py \ src/backend/settings.py \ src/backend/talk.py \ src/backend/tracker.py \ src/backend/util.py \ src/backend/zeiterfassung.py backenddir = $(pythondir)/ipfire # ------------------------------------------------------------------------------ web_PYTHON = \ src/web/__init__.py \ src/web/auth.py \ src/web/blog.py \ src/web/download.py \ src/web/handlers.py \ src/web/handlers_base.py \ src/web/handlers_boot.py \ src/web/handlers_fireinfo.py \ src/web/handlers_iuse.py \ src/web/handlers_mirrors.py \ src/web/handlers_nopaste.py \ src/web/location.py \ src/web/people.py \ src/web/ui_modules.py webdir = $(backenddir)/web # ------------------------------------------------------------------------------ # TODO install the base for now and add all other templates later templates_DATA = \ src/templates/base.html \ src/templates/donate.html \ src/templates/error.html \ src/templates/index.html templatesdir = $(datadir)/templates templates_auth_DATA = \ src/templates/auth/login.html templates_authdir = $(templatesdir)/auth templates_blog_DATA = \ src/templates/blog/author.html \ src/templates/blog/base.html \ src/templates/blog/compose.html \ src/templates/blog/drafts.html \ src/templates/blog/feed.xml \ src/templates/blog/index.html \ src/templates/blog/post.html \ src/templates/blog/search-results.html \ src/templates/blog/tag.html \ src/templates/blog/year.html templates_blogdir = $(templatesdir)/blog templates_blog_modules_DATA = \ src/templates/blog/modules/history-navigation.html \ src/templates/blog/modules/list.html \ src/templates/blog/modules/post.html \ src/templates/blog/modules/posts.html templates_blog_modulesdir = $(templates_blogdir)/modules templates_download_DATA = \ src/templates/download/base.html \ src/templates/download/release.html templates_downloaddir = $(templatesdir)/download templates_location_DATA = \ src/templates/location/lookup.html templates_locationdir = $(templatesdir)/location templates_modules_DATA = \ src/templates/modules/map.html \ src/templates/modules/menu.html templates_modulesdir = $(templatesdir)/modules templates_people_DATA = \ src/templates/people/base.html \ src/templates/people/index.html \ src/templates/people/registrations.html \ src/templates/people/search.html \ src/templates/people/user.html \ src/templates/people/users.html templates_peopledir = $(templatesdir)/people templates_people_modules_DATA = \ src/templates/people/modules/accounts-list.html \ src/templates/people/modules/cdr.html \ src/templates/people/modules/channels.html \ src/templates/people/modules/registrations.html templates_people_modulesdir = $(templates_peopledir)/modules templates_static_DATA = \ src/templates/static/features.html \ src/templates/static/get-involved.html \ src/templates/static/get-started.html \ src/templates/static/get-support.html \ src/templates/static/hardware.html \ src/templates/static/legal.html templates_staticdir = $(templatesdir)/static # ------------------------------------------------------------------------------ SCSS_FILES = \ src/scss/style.scss \ src/scss/_fonts.scss \ src/scss/_icons.scss \ src/scss/_variables.scss EXTRA_DIST += \ src/templates/messages/main.scss CLEANFILES += \ src/templates/messages/main.css static_DATA = \ src/static/favicon.ico \ src/static/robots.txt \ src/scss/main.css CLEANFILES += \ src/scss/main.css EXTRA_DIST += \ $(SCSS_FILES) staticdir = $(datadir)/static static_fonts_DATA = \ src/fonts/ofl/mukta/Mukta-Bold.ttf \ src/fonts/ofl/mukta/Mukta-ExtraBold.ttf \ src/fonts/ofl/mukta/Mukta-ExtraLight.ttf \ src/fonts/ofl/mukta/Mukta-Light.ttf \ src/fonts/ofl/mukta/Mukta-Medium.ttf \ src/fonts/ofl/mukta/Mukta-Regular.ttf \ src/fonts/ofl/mukta/Mukta-SemiBold.ttf \ \ src/font-awesome/web-fonts-with-css/webfonts/fa-brands-400.eot \ src/font-awesome/web-fonts-with-css/webfonts/fa-brands-400.svg \ src/font-awesome/web-fonts-with-css/webfonts/fa-brands-400.ttf \ src/font-awesome/web-fonts-with-css/webfonts/fa-brands-400.woff \ src/font-awesome/web-fonts-with-css/webfonts/fa-brands-400.woff2 \ src/font-awesome/web-fonts-with-css/webfonts/fa-regular-400.eot \ src/font-awesome/web-fonts-with-css/webfonts/fa-regular-400.svg \ src/font-awesome/web-fonts-with-css/webfonts/fa-regular-400.ttf \ src/font-awesome/web-fonts-with-css/webfonts/fa-regular-400.woff \ src/font-awesome/web-fonts-with-css/webfonts/fa-regular-400.woff2 \ src/font-awesome/web-fonts-with-css/webfonts/fa-solid-900.eot \ src/font-awesome/web-fonts-with-css/webfonts/fa-solid-900.svg \ src/font-awesome/web-fonts-with-css/webfonts/fa-solid-900.ttf \ src/font-awesome/web-fonts-with-css/webfonts/fa-solid-900.woff \ src/font-awesome/web-fonts-with-css/webfonts/fa-solid-900.woff2 static_fontsdir = $(staticdir)/fonts static_images_DATA = \ src/static/img/amex.png \ src/static/img/amex@2x.png \ src/static/img/amex@3x.png \ src/static/img/appliance-pro.png \ src/static/img/default-avatar.jpg \ src/static/img/ipfire-tux.png \ src/static/img/lightningwirelabs-logo.svg \ src/static/img/mastercard.png \ src/static/img/mastercard@2x.png \ src/static/img/mastercard@3x.png \ src/static/img/paypal.png \ src/static/img/paypal@2x.png \ src/static/img/paypal@3x.png \ src/static/img/visa.png \ src/static/img/visa@2x.png \ src/static/img/visa@3x.png static_imagesdir = $(staticdir)/img static_images_screenshots_DATA = \ src/static/img/screenshots/firewall-connections.png \ src/static/img/screenshots/firewall-host-groups.png \ src/static/img/screenshots/firewall-new-rule.png \ src/static/img/screenshots/firewall-rules.png \ src/static/img/screenshots/firewall-service-groups.png \ src/static/img/screenshots/pakfire-addon-services-1.png \ src/static/img/screenshots/pakfire-overview-1.png static_images_screenshotsdir = $(static_imagesdir)/screenshots static_images_tux_DATA = \ src/static/img/tux/ipfire_tux_16x16.png \ src/static/img/tux/ipfire_tux_20x20.png \ src/static/img/tux/ipfire_tux_32x32.png \ src/static/img/tux/ipfire_tux_48x48.png \ src/static/img/tux/ipfire_tux_64x64.png \ src/static/img/tux/ipfire_tux_128x128.png \ src/static/img/tux/ipfire_tux_256x256.png \ src/static/img/tux/ipfire_tux_420x420.png \ src/static/img/tux/ipfire_tux_512x512.png static_images_tuxdir = $(static_imagesdir)/tux static_js_DATA = \ src/bootstrap/dist/js/bootstrap.min.js \ src/bootstrap/dist/js/bootstrap.min.js.map \ \ src/static/js/jquery-3.3.1.min.js \ src/static/js/popper.min.js \ src/static/js/site.js static_jsdir = $(staticdir)/js # ------------------------------------------------------------------------------ dist_cron_DATA = \ src/crontab/ipfire.org # ------------------------------------------------------------------------------ if HAVE_SYSTEMD systemdsystemunit_DATA = \ src/systemd/ipfire.org-webapp-1.service \ src/systemd/ipfire.org-webapp-2.service \ src/systemd/ipfire.org-webapp-3.service \ src/systemd/ipfire.org-webapp-4.service CLEANFILES += \ $(systemdsystemunit_DATA) INSTALL_DIRS += \ $(systemdsystemunitdir) endif EXTRA_DIST += \ src/systemd/ipfire.org-webapp-1.service.in \ src/systemd/ipfire.org-webapp-3.service.in \ src/systemd/ipfire.org-webapp-3.service.in \ src/systemd/ipfire.org-webapp-4.service.in # ------------------------------------------------------------------------------ substitutions = \ '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ '|PYTHON=$(PYTHON)|' \ '|configsdir=$(configsdir)|' \ '|bindir=$(bindir)|' \ '|datadir=$(datadir)|' SED_PROCESS = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ < $< > $@ %: %.in Makefile $(SED_PROCESS) %.css: %.scss Makefile $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(SASSC) --style compressed $< > $@ src/scss/main.css: $(SCSS_FILES) Makefile $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(SASSC) --style compressed $< > $@