mirror of
https://github.com/maputnik/editor.git
synced 2026-01-10 23:40:00 +00:00
22 lines
454 B
Makefile
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
|