summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-01 17:25:41 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-01 17:25:41 +1100
commitcf3c0266c2bf0f6fbbd532ef4e0c9bdd0a7b37a7 (patch)
treee1200262f40aead51403aab1e665392892d0298f /Makefile
parent393c88f087d40578558b104dd42ff2076e198188 (diff)
downloadsubsurface-cf3c0266c2bf0f6fbbd532ef4e0c9bdd0a7b37a7.tar.gz
Move flag icon to include file
Just like with the satellite icon we are creating a pixdata structure for the flag. The Makefile cleanup in commit df6a9ddd8a21 ("Auto-generate C file dependencies, and make the build more quiet") removed the rules for generating the .h file by mistake (I hope). This adds a more generic rule back in and also makes sure that the data structures get more useful names. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 93a893687..07c76052c 100644
--- a/Makefile
+++ b/Makefile
@@ -249,6 +249,16 @@ share/locale/%.UTF-8/LC_MESSAGES/subsurface.mo: po/%.po po/%.aliases
done; \
fi
+# this should work but it doesn't preserve the transparancy - so I manually converted with gimp
+# satellite.png: satellite.svg
+# convert -resize 11x16 -depth 8 satellite.svg satellite.png
+#
+# the following creates the pixbuf data in .h files with the basename followed by '_pixmap'
+# as name of the data structure
+%.h: %.png
+ @echo ' gdk-pixbuf-csource' $<
+ @gdk-pixbuf-csource --struct --name $*_pixbuf $< > $@
+
doc:
$(MAKE) -C Documentation doc