forked from Decentrala/dmzconf
		
	Adding help option in makefile
This commit is contained in:
		
							
								
								
									
										15
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								Makefile
									
									
									
									
									
								
							@@ -1,5 +1,14 @@
 | 
			
		||||
map.txt: map.ge
 | 
			
		||||
	grep -v '# unimportant' $< | graph-easy --boxart > $@
 | 
			
		||||
.PHONY: help
 | 
			
		||||
 | 
			
		||||
full_map.txt: map.ge
 | 
			
		||||
help: ## Print the help message
 | 
			
		||||
	@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
 | 
			
		||||
		sort | \
 | 
			
		||||
		column -s ':' -t
 | 
			
		||||
 | 
			
		||||
map.txt: map.ge ## Making map.txt
 | 
			
		||||
	grep -v '# unimportant' $< | graph-easy --boxart > $@
 | 
			
		||||
	cat $@
 | 
			
		||||
 | 
			
		||||
full_map.txt: map.ge ## Generating full_map.txt with graph-easy
 | 
			
		||||
	graph-easy --boxart < $< > $@
 | 
			
		||||
	cat $@
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user