29 lines
		
	
	
		
			761 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			761 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # This is a Metricator Makefile.
 | |
| # It contains calls to scripts placed in scripts directory.
 | |
| 
 | |
| CONFIG ?= ./metricator.example.yaml
 | |
| 
 | |
| help: Makefile
 | |
| 	@echo -e "Metricator Makefile available subcommands:\n"
 | |
| 	@cat $< | grep "## " | sort | sed -n 's/^## //p'
 | |
| 	@echo ""
 | |
| 	@make show-git-data
 | |
| 
 | |
| .DEFAULT_GOAL := help
 | |
| 
 | |
| check-build-dir:
 | |
| 	@if [ ! -d "._bin" ]; then mkdir ._bin; fi
 | |
| 
 | |
| ## metricatord-build: builds metricator daemon and places into ${PWD}/._bin.
 | |
| metricatord-build: check-build-dir
 | |
| 	@rm ./._bin/metricatord || true
 | |
| 	@scripts/build.sh metricatord
 | |
| 
 | |
| ## metricatord-run: starts metricator daemon.
 | |
| metricatord-run: metricatord-build
 | |
| 	./._bin/metricatord -config ${CONFIG}
 | |
| 
 | |
| show-git-data:
 | |
| 	@echo "Parameters for current source code state:"
 | |
| 	@scripts/show_git_data.sh
 |