24 lines
		
	
	
		
			657 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			657 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| LINKER_FLAGS = "-X 'go.dev.pztrn.name/periodicator/internal/config.Version=$(shell scripts/get_version.sh)'"
 | |
| CONFIG ?= "./config.example.yaml"
 | |
| 
 | |
| build:
 | |
| 	go build -ldflags $(LINKER_FLAGS) -o periodicator .
 | |
| 
 | |
| generate-version:
 | |
| 	scripts/get_version.sh generate
 | |
| 
 | |
| run:
 | |
| 	go build -ldflags $(LINKER_FLAGS) -o periodicator .
 | |
| 	GPT_CONFIG=$(CONFIG) ./periodicator
 | |
| 	rm periodicator
 | |
| 
 | |
| run-show-next-creation-ts:
 | |
| 	go build -ldflags $(LINKER_FLAGS) -o periodicator .
 | |
| 	GPT_CONFIG=$(CONFIG) ./periodicator -show-next-creation-ts
 | |
| 	rm periodicator
 | |
| 
 | |
| run-version:
 | |
| 	go build -ldflags $(LINKER_FLAGS) -o periodicator .
 | |
| 	GPT_CONFIG=$(CONFIG) ./periodicator -version
 | |
| 	rm periodicator
 |