comparison 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
comparison
equal deleted inserted replaced
12:e32b90567f39 13:e4391e12b799
23 23
24 NAME = tab-mover 24 NAME = tab-mover
25 VERSION = 3 25 VERSION = 3
26 EXT_NAME = $(subst -,_,$(NAME))-$(VERSION) 26 EXT_NAME = $(subst -,_,$(NAME))-$(VERSION)
27 27
28 INKSCAPE := inkscape 28 INKSCAPE := inkscape
29 INFOZIP := zip 29 INFOZIP := zip
30 SED := sed
30 31
31 BITMAP_ICONS = icons/tab-mover-48.png \ 32 BITMAP_ICONS = icons/tab-mover-48.png \
32 icons/tab-mover-96.png 33 icons/tab-mover-96.png
33 DIST_FILES = manifest.json \ 34 DIST_FILES = manifest.json \
34 background.js \ 35 background.js \
55 $(INKSCAPE) -w $$$${size} -h $$$${size} -e $$@ $$< 56 $(INKSCAPE) -w $$$${size} -h $$$${size} -e $$@ $$<
56 endef 57 endef
57 58
58 $(foreach icon,$(BITMAP_ICONS),$(eval $(call generate-icon-rule,$(icon)))) 59 $(foreach icon,$(BITMAP_ICONS),$(eval $(call generate-icon-rule,$(icon))))
59 60
61 manifest.json: manifest.json.in
62 $(SED) 's|@VERSION@|$(VERSION)|g' $< >$@
63
60 clean: 64 clean:
61 -rm -f $(BITMAP_ICONS) 65 -rm -f $(BITMAP_ICONS)
62 66
63 clobber: clean 67 clobber: clean