diff Makefile @ 13:e4391e12b799

Generate manifest.json
author Guido Berhoerster <guido+tab-mover@berhoerster.name>
date Wed, 22 Feb 2017 09:11:14 +0100
parents a003955c8b23
children 288f880882c5
line wrap: on
line diff
--- a/Makefile	Mon Feb 20 18:07:00 2017 +0100
+++ b/Makefile	Wed Feb 22 09:11:14 2017 +0100
@@ -25,8 +25,9 @@
 VERSION =	3
 EXT_NAME =	$(subst -,_,$(NAME))-$(VERSION)
 
-INKSCAPE := inkscape
-INFOZIP := zip
+INKSCAPE := 	inkscape
+INFOZIP :=	zip
+SED :=		sed
 
 BITMAP_ICONS =	icons/tab-mover-48.png \
 		icons/tab-mover-96.png
@@ -57,6 +58,9 @@
 
 $(foreach icon,$(BITMAP_ICONS),$(eval $(call generate-icon-rule,$(icon))))
 
+manifest.json: manifest.json.in
+	$(SED) 's|@VERSION@|$(VERSION)|g' $< >$@
+
 clean:
 	-rm -f $(BITMAP_ICONS)