From faad1b072a930b504adfaef4324d8469e1a57502 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 9 Oct 2015 11:41:37 +0100 Subject: Correct errors in Makefiles --- .tmux/Makefile | 1 + .zathura/Makefile | 4 ++-- .zsh/Makefile | 7 +++---- bin/clean | 2 +- bin/install | 2 +- 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 -- cgit v1.2.3