Skip to content

Commit

Permalink
install and uninstall rules on Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawka committed May 27, 2018
1 parent da95b87 commit 8a718ce
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
@@ -1,5 +1,15 @@
.PHONY: install

CURRENT_DIR=${PWD}

LINKS = ctags gitconfig gitignore_global

install:
@echo "Refactoring in progress"
@for file in $(LINKS); do \
ln -sf "$(CURRENT_DIR)/$$file" "${HOME}/.$$file" ; \
done

uninstall:
@for file in $(LINKS); do \
rm "${HOME}/.$$file" ; \
done

0 comments on commit 8a718ce

Please sign in to comment.