Files
editor/Makefile
2016-09-27 14:28:40 +02:00

22 lines
450 B
Makefile

SOURCEDIR=.
SOURCES := $(shell find $(SOURCEDIR) -name '*.go')
BINARY=maputnik
all: $(BINARY)
$(BINARY): $(SOURCES) bindata_assetfs.go
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 --prefix "editor/" editor/public
.PHONY: clean
clean:
rm -rf editor/public && rm -f bindata_assetfs.go && rm -f maputnik