init
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
		
			
				
	
				CI / build (push) Waiting to run
				
					
					
				
			
		
			
				
	
				CI / deploy (push) Blocked by required conditions
				
					
					
				
			
		
		
	
	
				
					
				
			
		
			Some checks are pending
		
		
	
	CI / build (push) Waiting to run
				CI / deploy (push) Blocked by required conditions
				This commit is contained in:
		
							
								
								
									
										26
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
SRC_DIR ?= src
 | 
			
		||||
DOC_DIR ?= doc
 | 
			
		||||
TESTS_DIR ?= tests
 | 
			
		||||
 | 
			
		||||
all: fmt vet missdoc test
 | 
			
		||||
 | 
			
		||||
fmt:
 | 
			
		||||
	v fmt -verify -diff $(SRC_DIR)
 | 
			
		||||
 | 
			
		||||
vet:
 | 
			
		||||
	v vet -W -r -I -F $(SRC_DIR)
 | 
			
		||||
 | 
			
		||||
missdoc:
 | 
			
		||||
	v missdoc -r --verify $(SRC_DIR)
 | 
			
		||||
 | 
			
		||||
test:
 | 
			
		||||
	v test .
 | 
			
		||||
 | 
			
		||||
doc:
 | 
			
		||||
	v doc -f html -m . -o $(DOC_DIR)
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	rm -r $(DOC_DIR) || true
 | 
			
		||||
 | 
			
		||||
serve: clean doc
 | 
			
		||||
	v -e "import net.http.file; file.serve(folder: '$(DOC_DIR)')"
 | 
			
		||||
		Reference in New Issue
	
	Block a user