]> git.ipfire.org Git - ipfire.org.git/blobdiff - Makefile.am
Generate favicon.ico and Apple Icons from logo
[ipfire.org.git] / Makefile.am
index cbc79bf4e3b09eb84022a0edc3a9a08c8175efe0..b0a34eaf17c2d3034e4a99e2937d3a0aa35e76da 100644 (file)
@@ -56,7 +56,10 @@ backend_PYTHON = \
        src/backend/decorators.py \
        src/backend/fireinfo.py \
        src/backend/geoip.py \
+       src/backend/hwdata.py \
        src/backend/iuse.py \
+       src/backend/memcached.py \
+       src/backend/messages.py \
        src/backend/mirrors.py \
        src/backend/misc.py \
        src/backend/netboot.py \
@@ -64,8 +67,8 @@ backend_PYTHON = \
        src/backend/releases.py \
        src/backend/settings.py \
        src/backend/talk.py \
-       src/backend/tracker.py \
        src/backend/util.py \
+       src/backend/wiki.py \
        src/backend/zeiterfassung.py
 
 backenddir = $(pythondir)/ipfire
@@ -78,6 +81,7 @@ web_PYTHON = \
        src/web/base.py \
        src/web/blog.py \
        src/web/boot.py \
+       src/web/donate.py \
        src/web/download.py \
        src/web/fireinfo.py \
        src/web/handlers.py \
@@ -87,7 +91,8 @@ web_PYTHON = \
        src/web/newsletter.py \
        src/web/nopaste.py \
        src/web/people.py \
-       src/web/ui_modules.py
+       src/web/ui_modules.py \
+       src/web/wiki.py
 
 webdir = $(backenddir)/web
 
@@ -97,14 +102,16 @@ webdir = $(backenddir)/web
 
 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
+       src/templates/auth/activate.html \
+       src/templates/auth/login.html \
+       src/templates/auth/register.html \
+       src/templates/auth/register-success.html
 
 templates_authdir = $(templatesdir)/auth
 
@@ -132,42 +139,39 @@ templates_blog_modules_DATA = \
 
 templates_blog_modulesdir = $(templates_blogdir)/modules
 
+templates_donate_DATA = \
+       src/templates/donate/donate.html \
+       src/templates/donate/error.html \
+       src/templates/donate/thank-you.html
+
+templates_donatedir = $(templatesdir)/donate
+
 templates_download_DATA = \
        src/templates/download/release.html
 
 templates_downloaddir = $(templatesdir)/download
 
 templates_fireinfo_DATA = \
-       src/templates/fireinfo/base.html \
        src/templates/fireinfo/driver.html \
        src/templates/fireinfo/index.html \
        src/templates/fireinfo/i-use-1.png \
-       src/templates/fireinfo/model-detail.html \
-       src/templates/fireinfo/profile-detail.html \
-       src/templates/fireinfo/profile-notfound.html \
-       src/templates/fireinfo/stats-admin.html \
-       src/templates/fireinfo/stats-cpus-detail.html \
-       src/templates/fireinfo/stats-cpus.html \
-       src/templates/fireinfo/stats-geo.html \
-       src/templates/fireinfo/stats.html \
-       src/templates/fireinfo/stats-languages.html \
-       src/templates/fireinfo/stats-memory.html \
-       src/templates/fireinfo/stats-network.html \
-       src/templates/fireinfo/stats-oses.html \
-       src/templates/fireinfo/stats-virtual.html \
-       src/templates/fireinfo/vendor-detail.html \
+       src/templates/fireinfo/processors.html \
+       src/templates/fireinfo/profile.html \
+       src/templates/fireinfo/releases.html \
+       src/templates/fireinfo/vendor.html \
        src/templates/fireinfo/vendors.html
 
 templates_fireinfodir = $(templatesdir)/fireinfo
 
 templates_fireinfo_modules_DATA = \
        src/templates/fireinfo/modules/table-devices-and-groups.html \
-       src/templates/fireinfo/modules/table-devices.html \
-       src/templates/fireinfo/modules/table-geo.html
+       src/templates/fireinfo/modules/table-devices.html
 
 templates_fireinfo_modulesdir = $(templates_fireinfodir)/modules
 
 templates_location_DATA = \
+       src/templates/location/base.html \
+       src/templates/location/blacklists.html \
        src/templates/location/lookup.html
 
 templates_locationdir = $(templatesdir)/location
@@ -179,7 +183,8 @@ templates_mirrors_DATA = \
 templates_mirrorsdir = $(templatesdir)/mirrors
 
 templates_modules_DATA = \
-       src/templates/modules/map.html
+       src/templates/modules/map.html \
+       src/templates/modules/progress-bar.html
 
 templates_modulesdir = $(templatesdir)/modules
 
@@ -253,6 +258,36 @@ templates_static_DATA = \
 
 templates_staticdir = $(templatesdir)/static
 
+templates_wiki_DATA = \
+       src/templates/wiki/404.html \
+       src/templates/wiki/base.html \
+       src/templates/wiki/diff.html \
+       src/templates/wiki/edit.html \
+       src/templates/wiki/page.html \
+       src/templates/wiki/recent-changes.html \
+       src/templates/wiki/revisions.html \
+       src/templates/wiki/search-results.html
+
+templates_wikidir = $(templatesdir)/wiki
+
+templates_wiki_files_DATA = \
+       src/templates/wiki/files/detail.html \
+       src/templates/wiki/files/index.html
+
+templates_wiki_filesdir = $(templates_wikidir)/files
+
+templates_wiki_messages_DATA = \
+       src/templates/wiki/messages/page-changed.txt
+
+templates_wiki_messagesdir = $(templates_wikidir)/messages
+
+templates_wiki_modules_DATA = \
+       src/templates/wiki/modules/diff.html \
+       src/templates/wiki/modules/list.html \
+       src/templates/wiki/modules/navbar.html
+
+templates_wiki_modulesdir = $(templates_wikidir)/modules
+
 # ------------------------------------------------------------------------------
 
 SCSS_FILES = \
@@ -262,6 +297,7 @@ SCSS_FILES = \
        src/scss/_variables.scss
 
 EXTRA_DIST += \
+       src/scss/listing.scss \
        src/templates/messages/main.scss
 
 CLEANFILES += \
@@ -270,9 +306,13 @@ CLEANFILES += \
 static_DATA = \
        src/static/favicon.ico \
        src/static/robots.txt \
+       src/scss/fonts.css \
+       src/scss/listing.css \
        src/scss/main.css
 
 CLEANFILES += \
+       src/scss/fonts.css \
+       src/scss/listing.css \
        src/scss/main.css
 
 EXTRA_DIST += \
@@ -842,6 +882,14 @@ static_fonts_DATA = \
 static_fontsdir = $(staticdir)/fonts
 
 static_images_DATA = \
+       src/static/img/apple-touch-icon-192x192-precomposed.png \
+       src/static/img/apple-touch-icon-180x180-precomposed.png \
+       src/static/img/apple-touch-icon-152x152-precomposed.png \
+       src/static/img/apple-touch-icon-144x144-precomposed.png \
+       src/static/img/apple-touch-icon-120x120-precomposed.png \
+       src/static/img/apple-touch-icon-76x76-precomposed.png \
+       src/static/img/apple-touch-icon-72x72-precomposed.png \
+       src/static/img/apple-touch-icon-60x60-precomposed.png \
        src/static/img/default-avatar.jpg \
        src/static/img/ipfire-tux.png \
        src/static/img/iuse-not-found.png \
@@ -930,6 +978,10 @@ SED_PROCESS = \
 %: %.in Makefile
        $(SED_PROCESS)
 
+%.css: _%.scss Makefile
+       $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
+               $(SASSC) --style compressed $< > $@
+
 %.css: %.scss Makefile
        $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
                $(SASSC) --style compressed $< > $@
@@ -937,3 +989,18 @@ SED_PROCESS = \
 src/scss/main.css: $(SCSS_FILES) Makefile
        $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
                $(SASSC) --style compressed $< > $@
+
+src/static/favicon.ico: src/static/img/ipfire-tux.png Makefile
+       $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
+       $(CONVERT) $< -background none -flatten -density 1200 \
+               -define icon:auto-resize=64,48,32,16 $@
+
+src/static/img/apple-touch-icon-%-precomposed.png: src/static/img/ipfire-tux.png Makefile
+       $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
+       $(CONVERT) -background none -flatten -density 1200 -bordercolor none -border 5%x5% \
+               -resize $(patsubst src/static/img/apple-touch-icon-%-precomposed.png,%,$@) $< $@
+
+# Docker
+.PHONY: docker
+docker: Dockerfile
+       docker build -t "ipfire/webapp:$(PACKAGE_VERSION)" .