copay/chrome-app/Makefile

28 lines
642 B
Makefile
Raw Normal View History

2016-08-10 13:35:40 -07:00
# Configs
BUILDDIR=build
ZIPFILE=copay-chrome-extension.zip
INCLUDE=$(shell cat ./include)
INITIAL=./initial.js
BASE=$(CURDIR)
all: $(ZIPFILE)
dir:
2016-08-10 13:35:40 -07:00
rm -rf $(BUILDDIR)
mkdir -p $(BUILDDIR)
2016-08-19 13:47:37 -07:00
cp manifest.json $(BUILDDIR)/manifest.json
2016-08-10 13:35:40 -07:00
cp -vf $(INITIAL) $(BUILDDIR)
files:
cd ../www && rsync -rLRv --exclude-from $(BASE)/exclude $(INCLUDE) $(BASE)/$(BUILDDIR) && cd -
2016-08-10 13:35:40 -07:00
cd .. && rsync -rLRv ./bower_components/trezor-connect/chrome/* $(BASE)/$(BUILDDIR)/ && cd -
2016-08-10 13:35:40 -07:00
$(ZIPFILE): dir files
cd $(BUILDDIR)
rm -f $(ZIPFILE)
zip -qr $(ZIPFILE) "`basename $(BUILDDIR)`"
@echo "** The Chrome Extension is ready at copay-chrome-extension.zip"