mirror of
https://github.com/maputnik/editor.git
synced 2026-06-17 20:57:27 +00:00
Add Makefile
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user