summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-10-09 11:41:37 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-10-09 11:41:37 +0100
commitfaad1b072a930b504adfaef4324d8469e1a57502 (patch)
treeaff5ead6fedb1aa6f35d0a23b8ef35ec19f68d04
parent3125a8c2efacb0aa4191d9dd0c06ce0af16dd2c0 (diff)
Correct errors in Makefiles
-rw-r--r--.tmux/Makefile1
-rw-r--r--.zathura/Makefile4
-rw-r--r--.zsh/Makefile7
-rwxr-xr-xbin/clean2
-rwxr-xr-xbin/install2
5 files changed, 8 insertions, 8 deletions
diff --git a/.tmux/Makefile b/.tmux/Makefile
index bb4db43..bbe8e6e 100644
--- a/.tmux/Makefile
+++ b/.tmux/Makefile
@@ -12,3 +12,4 @@ $(HOME)/.tmux/plugins/tpm :
clean :
rm -f $(TARGETS)
+ rm -rf $(HOME)/.tmux
diff --git a/.zathura/Makefile b/.zathura/Makefile
index e8c3e11..c88ecfc 100644
--- a/.zathura/Makefile
+++ b/.zathura/Makefile
@@ -1,10 +1,10 @@
HOME=/home/urbain
TARGET=$(HOME)/.config/zathura/zathurarc
-all : $(TARGETS)
+all : $(TARGET)
$(HOME)/.config/zathura/zathurarc :
- rm -f $@ && ln -s $(PWD)/zathurarc $@
+ ln -sf $(PWD)/zathurarc $@
clean :
rm -f $(TARGET)
diff --git a/.zsh/Makefile b/.zsh/Makefile
index 74a4bfc..cbc6388 100644
--- a/.zsh/Makefile
+++ b/.zsh/Makefile
@@ -9,9 +9,8 @@ $(HOME)/.zshrc :
$(HOME)/.zsh :
rm -f $@ && ln -s $(PWD) $@
-$(HOME)/.zgen : $(PWD)/zgen
- cp -r $(PWD)/zgen $@
+$(HOME)/.zgen :
+ rm -f $@ && ln -s $(PWD)/zgen $@
clean :
- rm -f $(HOME)/.zsh $(HOME)/.zshrc
- rm -rf $(HOME)/.zgen
+ rm -f $(TARGETS)
diff --git a/bin/clean b/bin/clean
index 75eb89e..f2bb7e4 100755
--- a/bin/clean
+++ b/bin/clean
@@ -1,6 +1,6 @@
#! /bin/bash
dotdir=/home/urbain/dotfiles
-for file in `ls -A --ignore="install.sh" --ignore="README.md" --ignore=".git*"`; do
+for file in `ls -A --ignore="Makefile" --ignore="README.md" --ignore=".git*"`; do
if [[ -f $file/Makefile ]]; then
cd $file && make clean && cd $dotdir
else
diff --git a/bin/install b/bin/install
index eb69236..438c5b9 100755
--- a/bin/install
+++ b/bin/install
@@ -1,6 +1,6 @@
#! /bin/bash
dotdir=/home/urbain/dotfiles
-for file in `ls -A --ignore="install.sh" --ignore="README.md" --ignore=".git*"`; do
+for file in `ls -A --ignore="Makefile" --ignore="README.md" --ignore=".git*"`; do
if [[ -f $file/Makefile ]]; then
cd $file && make && cd $dotdir
else