diff Makefile @ 17:8445c729ba97

Add logo and favicon
author Guido Berhoerster <guido+booket@berhoerster.name>
date Mon, 29 Sep 2014 22:39:17 +0200
parents a1a934adff8d
children 58f3589982ea
line wrap: on
line diff
--- a/Makefile	Sun Sep 21 19:22:09 2014 +0200
+++ b/Makefile	Mon Sep 29 22:39:17 2014 +0200
@@ -21,16 +21,18 @@
 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #
 
+RSVG_CONVERT :=	rsvg-convert
 SCOUR :=	scour
 XMLLINT :=	xmllint
 
-SVGIMAGES :=	missing-favicon.svg
+SVGIMAGES :=	missing-favicon.svg booket-logo.svg
+PNGIMAGES :=	booket-favicon.png
 
 .DEFAULT_TARGET = all
 
 .PHONY: all clean clobber
 
-all: $(SVGIMAGES)
+all: $(SVGIMAGES) $(PNGIMAGES)
 
 %.svg: %.src.svg
 	$(SCOUR) --quiet -i $< --create-groups --enable-id-stripping \
@@ -38,7 +40,10 @@
 	    --no-renderer-workaround --strip-xml-prolog --enable-viewboxing \
 	    --set-precision=5 | $(XMLLINT) --format --noblanks --output $@ -
 
+%.png: %.src.svg
+	$(RSVG_CONVERT) -o $@ $<
+
 clean:
-	rm -f $(SVGIMAGES)
+	rm -f $(SVGIMAGES) $(PNGIMAGES)
 
 clobber: clean