Files
editor/Makefile
2017-01-01 21:12:24 +01:00

22 lines
454 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