]> git.ipfire.org Git - ipfire.org.git/blobdiff - Makefile.am
Generate favicon.ico and Apple Icons from logo
[ipfire.org.git] / Makefile.am
index 3e5a059bc5d40270fde39daaca2b31d9ae3d46e9..b0a34eaf17c2d3034e4a99e2937d3a0aa35e76da 100644 (file)
@@ -59,6 +59,7 @@ backend_PYTHON = \
        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 \
@@ -275,6 +276,11 @@ templates_wiki_files_DATA = \
 
 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 \
@@ -876,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 \
@@ -975,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)" .