#!/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/base.py \ src/web/blog.py \ src/web/boot.py \ src/web/download.py \ src/web/handlers.py \ src/web/handlers_fireinfo.py \ src/web/handlers_mirrors.py \ src/web/iuse.py \ src/web/location.py \ src/web/newsletter.py \ src/web/nopaste.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/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 templates_modulesdir = $(templatesdir)/modules templates_netboot_DATA = \ src/templates/netboot/menu.cfg \ src/templates/netboot/menu-config.cfg \ src/templates/netboot/menu-header.cfg \ src/templates/netboot/menu-separator.cfg \ src/templates/netboot/premenu.cfg templates_netbootdir = $(templatesdir)/netboot templates_newsletter_DATA = \ src/templates/newsletter/subscribed.html templates_newsletterdir = $(templatesdir)/newsletter templates_nopaste_DATA = \ src/templates/nopaste/create.html \ src/templates/nopaste/view.html templates_nopastedir = $(templatesdir)/nopaste templates_nopaste_modules_DATA = \ src/templates/nopaste/modules/code.html templates_nopaste_modulesdir = $(templates_nopastedir)/modules templates_people_DATA = \ src/templates/people/base.html \ src/templates/people/conferences.html \ src/templates/people/call.html \ src/templates/people/calls.html \ src/templates/people/index.html \ src/templates/people/passwd.html \ src/templates/people/search.html \ src/templates/people/sip.html \ src/templates/people/user.html \ src/templates/people/user-edit.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/mos.html \ src/templates/people/modules/password.html \ src/templates/people/modules/password.js \ src/templates/people/modules/registrations.html \ src/templates/people/modules/sip-status.html templates_people_modulesdir = $(templates_peopledir)/modules templates_people_ssh_keys_DATA = \ src/templates/people/ssh-keys/delete.html \ src/templates/people/ssh-keys/error.html \ src/templates/people/ssh-keys/error-invalid-key.html \ src/templates/people/ssh-keys/index.html \ src/templates/people/ssh-keys/upload.html templates_people_ssh_keysdir = $(templates_peopledir)/ssh-keys templates_static_DATA = \ src/templates/static/blocked.html \ src/templates/static/chat.html \ src/templates/static/features.html \ src/templates/static/legal.html \ src/templates/static/support.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_css_DATA = \ src/static/css/prettify.css static_cssdir = $(staticdir)/css 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 \ \ src/payment-font/fonts/paymentfont-webfont.eot \ src/payment-font/fonts/paymentfont-webfont.svg \ src/payment-font/fonts/paymentfont-webfont.ttf \ src/payment-font/fonts/paymentfont-webfont.woff static_fontsdir = $(staticdir)/fonts static_images_DATA = \ src/static/img/default-avatar.jpg \ src/static/img/ipfire-tux.png \ src/static/img/lightningwirelabs-logo.svg static_imagesdir = $(staticdir)/img 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/prettify.js \ \ src/static/js/zxcvbn/dist/zxcvbn.js \ src/static/js/zxcvbn/dist/zxcvbn.js.map static_jsdir = $(staticdir)/js static_netboot_DATA = \ src/static/netboot/boot.png \ src/static/netboot/boot.svg \ src/static/netboot/ipxe.kpxe \ src/static/netboot/menu.c32 \ src/static/netboot/pxelinux.0 \ src/static/netboot/vesamenu.c32 static_netbootdir = $(staticdir)/netboot # ------------------------------------------------------------------------------ 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 $< > $@