Add some missing stuff
This commit is contained in:
		
							parent
							
								
									623a69d025
								
							
						
					
					
						commit
						cfb4daaf1e
					
				
					 6 changed files with 93 additions and 3 deletions
				
			
		
							
								
								
									
										40
									
								
								Makefile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								Makefile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,40 @@
 | 
			
		|||
GOPATH := ${PWD}:${GOPATH}
 | 
			
		||||
export GOPATH
 | 
			
		||||
 | 
			
		||||
default: build
 | 
			
		||||
 | 
			
		||||
build: genversion test
 | 
			
		||||
	go build -v 
 | 
			
		||||
 | 
			
		||||
build-win: test genversion
 | 
			
		||||
	GOOS=windows GOARCH=amd64 go build -v -o ircd.exe ircd
 | 
			
		||||
 | 
			
		||||
genversion:
 | 
			
		||||
	./genversion.sh
 | 
			
		||||
 | 
			
		||||
fmt:
 | 
			
		||||
	go fmt ./...
 | 
			
		||||
 | 
			
		||||
fix:
 | 
			
		||||
	go fix ./...
 | 
			
		||||
 | 
			
		||||
imports:
 | 
			
		||||
	find . -type f -name "*.go" -exec goimports -w {} \;
 | 
			
		||||
 | 
			
		||||
doc:
 | 
			
		||||
	godoc -http=:6060 -index
 | 
			
		||||
	
 | 
			
		||||
test:
 | 
			
		||||
	go test ./...	
 | 
			
		||||
 | 
			
		||||
commit:
 | 
			
		||||
	git commit -a -F changes.log
 | 
			
		||||
	rm changes.log
 | 
			
		||||
	touch changes.log
 | 
			
		||||
	./genversion.sh 
 | 
			
		||||
 | 
			
		||||
push:
 | 
			
		||||
	git push
 | 
			
		||||
 | 
			
		||||
deploy:
 | 
			
		||||
	scp -r * root@<server>:/ircd
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue