mirror of
				https://github.com/genxium/DelayNoMore
				synced 2025-10-30 19:06:52 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			800 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			800 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
 | |
| 
 | |
| serve:
 | |
| 	gopherjs clean
 | |
| 	gopherjs serve $(PROJECTNAME)
 | |
| 
 | |
| build:
 | |
| 	gopherjs build $(PROJECTNAME)
 | |
| 	rm ../frontend/assets/plugin_scripts/jsexport.js && mv ./jsexport.js ../frontend/assets/plugin_scripts/jsexport.js
 | |
| 
 | |
| build-min:
 | |
| 	gopherjs build -m $(PROJECTNAME)
 | |
| 	rm ../frontend/assets/plugin_scripts/jsexport.js && mv ./jsexport.js ../frontend/assets/plugin_scripts/jsexport.js
 | |
| 
 | |
| .PHONY: help
 | |
| 
 | |
| help: Makefile
 | |
| 	@echo
 | |
| 	@echo " Choose a command run:"
 | |
| 	@echo
 | |
| 	@sed -n 's/^##//p' $< | column -t -s ':' |  sed -e 's/^/ /'
 | |
| 	@echo
 | |
|  
 |