You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tty-share/server/Makefile

25 lines
584 B
Makefile

TTY_SERVER_ASSETS=$(wildcard frontend/public/*) frontend/public/index.html
.PHONY: all frontend clean cleanfront rebuild
all: assets_bundle.go
@echo "Done"
rebuild: clean all
assets_bundle.go: $(TTY_SERVER_ASSETS)
go get github.com/go-bindata/go-bindata/...
go-bindata --prefix frontend/public/ -pkg server -o $@ frontend/public/*
frontend: cleanfront frontend/public/index.html assets_bundle.go
frontend/public/index.html:
cd frontend && npm install && npm run build && cd -
cleanfront:
rm -fr frontend/public
clean: cleanfront
rm -fr assets_bundle.go
@echo "Cleaned"