mirror of
				https://github.com/grassrootseconomics/cic-chain-events.git
				synced 2025-11-04 09:28:22 +01:00 
			
		
		
		
	* This is a major refactor and includes general improvements around - context cancellation - build settings - jetstream pub sub - logging - docker builds - conf loading
		
			
				
	
	
		
			18 lines
		
	
	
		
			378 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			378 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
BIN := cic-chain-events
 | 
						|
BUILD_CONF := CGO_ENABLED=1 GOOS=linux GOARCH=amd64
 | 
						|
BUILD_COMMIT := $(shell git rev-parse --short HEAD 2> /dev/null)
 | 
						|
 | 
						|
.PHONY: build
 | 
						|
 | 
						|
clean:
 | 
						|
	rm ${BIN}
 | 
						|
 | 
						|
build:
 | 
						|
	${BUILD_CONF} go build -ldflags="-X main.build=${BUILD_COMMIT} -s -w" -o ${BIN} cmd/service/*.go
 | 
						|
 | 
						|
run:
 | 
						|
	${BUILD_CONF} go run cmd/service/*
 | 
						|
 | 
						|
run-debug:
 | 
						|
	${BUILD_CONF} go run cmd/service/* -debug
 |