about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2020-02-26 15:26:00 -0500
committerBen Harris <ben@tilde.team>2020-02-26 15:26:00 -0500
commit2fd57e8772db6c2775757118bf9e521839631cdd (patch)
treeed9930c9c5890ddc45d08079796aeea95e48e203 /Makefile
parent9307af0b2516f1197168926155fa4731dbce6723 (diff)
add lf
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fcbee3a..7bb60c8 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ endif
 install:
 	@make $(UNAME)
 
-Linux: bash fzf fish git mutt byobu weechat vim nvim gnupg bin
+Linux: bash bin byobu fish git gnupg lf mutt nvim vim weechat
 Windows: bash git vim
 Other: bash git vim
 
@@ -28,6 +28,7 @@ clean:
 	stow -t "$$HOME" -D fish
 	stow -t "$$HOME" -D git
 	stow -t "$$HOME" -D gnupg
+	stow -t "$$HOME" -D lf/.config
 	stow -t "$$HOME" -D mutt
 	stow -t "$$HOME" -D nvim
 	stow -t "$$HOME" -D vim
@@ -37,7 +38,7 @@ bash:
 	@printf "$(YELLOW)--- bash -----------------------------------------------\n$(RESET)"
 	stow -t "$$HOME" bash
 
-bin:
+bin: lf
 	@printf "$(YELLOW)--- bin ------------------------------------------------\n$(RESET)"
 	mkdir -p "$$HOME/bin"
 	stow -t "$$HOME" bin
@@ -66,6 +67,13 @@ gnupg:
 	chmod 700 "$$HOME/.gnupg"
 	stow -t "$$HOME" gnupg
 
+lf:
+	@printf "$(YELLOW)--- lf --------------------------------------------------\n$(RESET)"
+	git submodule update --remote --init -- lf/lf
+	cd lf/lf; CGO_ENABLED=0 go build -ldflags="-s -w" -o ../../bin/bin/lf
+	mkdir -p ~/.trash
+	stow -t "$$HOME" lf
+
 mutt:
 	@printf "$(YELLOW)--- mutt -----------------------------------------------\n$(RESET)"
 	stow -t "$$HOME" mutt
@@ -89,4 +97,4 @@ nuke:
 	@printf "$(RED)--- nuking existing files ------------------------------\n$(RESET)"
 	rm -rf ~/.byobu ~/.config/fish ~/.fzf ~/.bash*
 
-.PHONY: bash fzf fish git vim nvim mutt byobu weechat gnupg bin clean install nuke Windows Linux Other
+.PHONY: bash fzf fish git vim nvim lf mutt byobu weechat gnupg bin clean install nuke Windows Linux Other