mirror of
				https://gitcode.com/gitea/gitea.git
				synced 2025-10-26 05:04:27 +08:00 
			
		
		
		
	Makefile: Copy installed binary instead 2nd build
This speeds up single build/rebuild rather than install & build which compiles everything twice, we just copy installed binary back to the project root.
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @ -11,7 +11,7 @@ NOW = $(shell date -u '+%Y%m%d%I%M%S') | |||||||
|  |  | ||||||
| build: | build: | ||||||
| 	go install -ldflags '$(LDFLAGS)' -tags '$(TAGS)' | 	go install -ldflags '$(LDFLAGS)' -tags '$(TAGS)' | ||||||
| 	go build -ldflags '$(LDFLAGS)' -tags '$(TAGS)' | 	cp '$(GOPATH)/bin/gogs' . | ||||||
|  |  | ||||||
| govet: | govet: | ||||||
| 	go tool vet -composites=false -methods=false -structtags=false . | 	go tool vet -composites=false -methods=false -structtags=false . | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Adam Strzelecki
					Adam Strzelecki