mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	Added Makefile (#5)
* Added a makefile * Update readme with makefile instructions
This commit is contained in:
		
							parent
							
								
									c62745792b
								
							
						
					
					
						commit
						1f1d36f06c
					
				
							
								
								
									
										25
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,25 @@
 | 
			
		||||
PREFIX ?= /usr
 | 
			
		||||
BINDIR ?= $(PREFIX)/bin
 | 
			
		||||
LIBDIR ?= $(PREFIX)/share/hilbish
 | 
			
		||||
 | 
			
		||||
build:
 | 
			
		||||
	@go build
 | 
			
		||||
 | 
			
		||||
install: build
 | 
			
		||||
	@install -v -d "$(BINDIR)/" && install -m 0755 -v hilbish "$(BINDIR)/hilbish"
 | 
			
		||||
	@mkdir -p "$(LIBDIR)"
 | 
			
		||||
	@cp libs preload.lua .hilbishrc.lua "$(LIBDIR)" -r
 | 
			
		||||
	@echo "Hilbish Installed"
 | 
			
		||||
 | 
			
		||||
uninstall:
 | 
			
		||||
	@rm -vrf \
 | 
			
		||||
			"$(BINDIR)/hilbish" \
 | 
			
		||||
			"$(LIBDIR)"
 | 
			
		||||
	@echo "Hilbish Uninstalled"
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	@go clean
 | 
			
		||||
 | 
			
		||||
all: build install
 | 
			
		||||
 | 
			
		||||
.PHONY: install uninstall build clean
 | 
			
		||||
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							@ -18,20 +18,16 @@ Prebuilt binaries are not yet provided, so to try it out you'll have to manually
 | 
			
		||||
### Requirements
 | 
			
		||||
- Go 1.16
 | 
			
		||||
 | 
			
		||||
### Setup
 | 
			
		||||
```
 | 
			
		||||
### Install
 | 
			
		||||
```sh
 | 
			
		||||
git clone https://github.com/Hilbis/Hilbish
 | 
			
		||||
cd Hilbish
 | 
			
		||||
go build
 | 
			
		||||
sudo make install
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
This will build a `hilbish` executable in the current directory. 
 | 
			
		||||
 | 
			
		||||
# Install
 | 
			
		||||
### Uninstall
 | 
			
		||||
```sh
 | 
			
		||||
sudo cp hilbish /usr/bin
 | 
			
		||||
sudo mkdir /usr/share/hilbish
 | 
			
		||||
sudo cp libs preload.lua .hilbishrc.lua /usr/share/hilbish -r
 | 
			
		||||
sudo make uninstall
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
# License
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user