DelayNoMore/jsexport/Makefile

36 lines
801 B
Makefile
Raw Permalink Normal View History

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
2023-01-22 15:05:32 +00:00
DST=../frontend/assets/scripts/modules
serve:
gopherjs serve $(PROJECTNAME)
2023-01-18 02:06:27 +00:00
clean:
gopherjs clean
2023-01-22 15:05:32 +00:00
rm -f $(DST)/jsexport.js
#rm -f $(DST)/jsexport.js.map
2023-01-18 02:06:27 +00:00
build: clean
gopherjs build $(PROJECTNAME)
2023-01-22 15:05:32 +00:00
mv ./jsexport.js $(DST)/
#mv ./jsexport.js.map $(DST)/
2023-01-18 02:06:27 +00:00
build-min: clean
gopherjs build -m $(PROJECTNAME)
2023-01-22 15:05:32 +00:00
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