mirror of
				https://github.com/cheat/cheat.git
				synced 2025-11-04 07:45:28 +01:00 
			
		
		
		
	feat(makefile): support 32-bit systems
- Update the `Makefile` to additionally output a 386 binary (#562) - Update the dependencies (#561) - Bump version
This commit is contained in:
		
							
								
								
									
										6
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								Makefile
									
									
									
									
									
								
							@@ -28,6 +28,7 @@ TMPDIR       := /tmp
 | 
			
		||||
# release binaries
 | 
			
		||||
releases :=                        \
 | 
			
		||||
	$(dist_dir)/cheat-darwin-amd64 \
 | 
			
		||||
	$(dist_dir)/cheat-linux-386    \
 | 
			
		||||
	$(dist_dir)/cheat-linux-amd64  \
 | 
			
		||||
	$(dist_dir)/cheat-linux-arm5   \
 | 
			
		||||
	$(dist_dir)/cheat-linux-arm6   \
 | 
			
		||||
@@ -52,6 +53,11 @@ $(dist_dir)/cheat-darwin-amd64: prepare
 | 
			
		||||
	GOARCH=amd64 GOOS=darwin \
 | 
			
		||||
	$(GO) build $(BUILD_FLAGS) -o $@ $(cmd_dir) && $(GZIP) $@ && chmod -x $@.gz
 | 
			
		||||
 | 
			
		||||
# cheat-linux-386
 | 
			
		||||
$(dist_dir)/cheat-linux-386: prepare
 | 
			
		||||
	GOARCH=386 GOOS=linux \
 | 
			
		||||
	$(GO) build $(BUILD_FLAGS) -o $@ $(cmd_dir) && $(GZIP) $@ && chmod -x $@.gz
 | 
			
		||||
 | 
			
		||||
# cheat-linux-amd64
 | 
			
		||||
$(dist_dir)/cheat-linux-amd64: prepare
 | 
			
		||||
	GOARCH=amd64 GOOS=linux \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user