Add Makefile

This commit is contained in:
lukasmartinelli
2016-09-27 20:58:08 +02:00
parent 66e3ce8743
commit 8b722fc967
5 changed files with 41 additions and 14 deletions
+21
View File
@@ -0,0 +1,21 @@
SOURCEDIR=.
SOURCES := $(shell find $(SOURCEDIR) -name '*.go')
BINARY=maputnik
all: $(BINARY)
$(BINARY): $(SOURCES)
go build -o ${BINARY}
editor/node_modules:
cd editor && npm install
editor/public: editor/node_modules
cd editor && npm run build
bindata_assetfs.go: editor/public
go-bindata-assetfs editor/public/
.PHONY: clean
clean:
rm -rf editor/public && rm -rf maputnik