Permalink
Find file
1ce10fb Jan 3, 2014
17 lines (12 sloc) 413 Bytes
NAME=createlink
EXTDIR=extension
VERSION=$(shell plutil -convert json -r -o - ./extension/manifest.json | "grep" '"version"' | "egrep" -o '\w(\.\w+)+')
DIRNAME=$(shell pwd)
SRC=extension
CRXMAKE_DIR=./crxmake
TMPFILELIST=/tmp/filelist
$(NAME)-$(VERSION).zip: $(SRC)
find "$(SRC)" | sed 's/$(SRC)/./' > $(TMPFILELIST)
cd $(SRC); cat $(TMPFILELIST) | zip $(DIRNAME)/$@ -@
clean:
rm $(NAME).crx $(NAME).zip