Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 479 Bytes
BUILDDIR := build/
NAME := ipvfoo
VERSION := $(shell cat src/manifest.json | \
sed -n 's/^ *"version": *"\([0-9.]\+\)".*/\1/p' | \
head -n1)
all: prepare firefox chrome
mkdir -p build
firefox: prepare
rm -f ${BUILDDIR}${NAME}-${VERSION}.xpi
cd src && zip -9r ../${BUILDDIR}${NAME}-${VERSION}.xpi *
chrome: prepare
rm -f ${BUILDDIR}${NAME}-${VERSION}.zip
zip -9r ${BUILDDIR}${NAME}-${VERSION}.zip src
rm -rf ${BUILDDIR}
You can’t perform that action at this time.