Some checks failed
		
		
	
	continuous-integration/drone/push Build is failing
				
			Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			525 B
		
	
	
	
		
			Makefile
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			525 B
		
	
	
	
		
			Makefile
		
	
	
		
			Executable file
		
	
	
	
	
| BUILD=`date +%FT%T%z`
 | |
| 
 | |
| LDFLAGS=-ldflags "-X main.buildDate=${BUILD}"
 | |
| 
 | |
| .PHONY: build deps static
 | |
| 
 | |
| test:
 | |
| 	go test git.martyn.berlin/martyn/twitchsingstools/internal/webserver
 | |
| 
 | |
| build:
 | |
| 	go build ${LDFLAGS}
 | |
| 
 | |
| build-frontend:
 | |
| 	cd build/react-frontend && npm install && npm run build
 | |
| 	rm -rf web/react-frontend ; mkdir -p web/react-frontend
 | |
| 	cp -r build/react-frontend/build/* web/react-frontend/
 | |
| 
 | |
| deps:
 | |
| 	go get
 | |
| 
 | |
| static:
 | |
| 	CGO_ENABLED=0 GOOS=linux go build ${LDFLAGS} -a -installsuffix cgo -o twitchsingstools .
 |