From cf3c0266c2bf0f6fbbd532ef4e0c9bdd0a7b37a7 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 1 Feb 2013 17:25:41 +1100 Subject: 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 --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2