mirror of
				https://github.com/cheat/cheat.git
				synced 2025-11-04 07:45:28 +01:00 
			
		
		
		
	3.3.2 (#530)
* chore: trivial Makefile changes Trivial `Makefile` changes regarding file pathing. * chore: build flags - Passes `-trimpath` flag to build tasks - Creates `make ci` task and modifies `travis.yml` to use it - Bumps version to `3.3.2`
This commit is contained in:
		
							
								
								
									
										10
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Makefile
									
									
									
									
									
								
							@@ -19,7 +19,7 @@ SORT   := sort
 | 
			
		||||
ZIP    := zip -m
 | 
			
		||||
 | 
			
		||||
# build flags
 | 
			
		||||
BUILD_FLAGS  := -ldflags="-s -w" -mod vendor
 | 
			
		||||
BUILD_FLAGS  := -ldflags="-s -w" -mod vendor -trimpath
 | 
			
		||||
GOBIN        :=
 | 
			
		||||
 | 
			
		||||
# release binaries
 | 
			
		||||
@@ -40,6 +40,10 @@ build: $(dist_dir)
 | 
			
		||||
.PHONY: build-release
 | 
			
		||||
build-release: $(releases)
 | 
			
		||||
 | 
			
		||||
## ci: builds a "release" executable for the current architecture (used in ci)
 | 
			
		||||
.PHONY: ci
 | 
			
		||||
ci: | setup prepare build
 | 
			
		||||
 | 
			
		||||
# cheat-darwin-amd64
 | 
			
		||||
$(dist_dir)/cheat-darwin-amd64: prepare
 | 
			
		||||
	GOARCH=amd64 GOOS=darwin \
 | 
			
		||||
@@ -91,7 +95,7 @@ clean: $(dist_dir)
 | 
			
		||||
## distclean: removes the tags file
 | 
			
		||||
.PHONY: distclean
 | 
			
		||||
distclean:
 | 
			
		||||
	$(RM) ./tags
 | 
			
		||||
	$(RM) tags
 | 
			
		||||
 | 
			
		||||
## setup: installs revive (linter) and scc (sloc tool)
 | 
			
		||||
.PHONY: setup
 | 
			
		||||
@@ -106,7 +110,7 @@ sloc:
 | 
			
		||||
## tags: builds a tags file
 | 
			
		||||
.PHONY: tags
 | 
			
		||||
tags:
 | 
			
		||||
	$(CTAGS) -R . --exclude=./vendor
 | 
			
		||||
	$(CTAGS) -R . --exclude=vendor
 | 
			
		||||
 | 
			
		||||
## vendor: downloads, tidies, and verifies dependencies
 | 
			
		||||
.PHONY: vendor
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user