mirror of
https://github.com/genxium/DelayNoMore
synced 2024-12-25 11:18:55 +00:00
36 lines
801 B
Makefile
36 lines
801 B
Makefile
PROJECTNAME=jsexport
|
|
ROOT_DIR=.
|
|
all: help
|
|
## Available proxies for downloading go modules are listed in "https://github.com/golang/go/wiki/Modules#how-do-i-use-vendoring-with-modules-is-vendoring-going-away".
|
|
#GOPROXY=https://mirrors.aliyun.com/goproxy
|
|
GOPROXY=https://goproxy.io
|
|
DST=../frontend/assets/scripts/modules
|
|
|
|
serve:
|
|
gopherjs serve $(PROJECTNAME)
|
|
|
|
clean:
|
|
gopherjs clean
|
|
rm -f $(DST)/jsexport.js
|
|
#rm -f $(DST)/jsexport.js.map
|
|
|
|
build: clean
|
|
gopherjs build $(PROJECTNAME)
|
|
mv ./jsexport.js $(DST)/
|
|
#mv ./jsexport.js.map $(DST)/
|
|
|
|
build-min: clean
|
|
gopherjs build -m $(PROJECTNAME)
|
|
mv ./jsexport.js $(DST)/
|
|
#mv ./jsexport.js.map $(DST)/
|
|
|
|
.PHONY: help
|
|
|
|
help: Makefile
|
|
@echo
|
|
@echo " Choose a command run:"
|
|
@echo
|
|
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
|
|
@echo
|
|
|