14 lines
		
	
	
	
		
			253 B
		
	
	
	
		
			Makefile
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			253 B
		
	
	
	
		
			Makefile
		
	
	
		
			Executable file
		
	
	
	
	
| BUILD=`date +%FT%T%z`
 | |
| 
 | |
| LDFLAGS=-ldflags "-X main.buildDate=${BUILD}"
 | |
| 
 | |
| .PHONY: build deps static
 | |
| 
 | |
| build:
 | |
| 	go build ${LDFLAGS}
 | |
| 
 | |
| deps:
 | |
| 	go get
 | |
| 
 | |
| static:
 | |
| 	CGO_ENABLED=0 GOOS=linux go build ${LDFLAGS} -a -installsuffix cgo -o twitchsingstools .
 |