summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-29 00:17:11 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-29 00:43:41 -0400
commit21601aa35d9c81bac89b2d7e66c469e66d631283 (patch)
tree59d448e94df975498a29840d3dc053399d1b8c19 /Makefile
parent8650a619d3397b750b33770bfba56b0e4fcb1753 (diff)
downloadconf-21601aa35d9c81bac89b2d7e66c469e66d631283.tar.gz
conf-21601aa35d9c81bac89b2d7e66c469e66d631283.zip
make installation easier to understand
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile127
1 files changed, 63 insertions, 64 deletions
diff --git a/Makefile b/Makefile
index 1e66572..da8e81b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,66 +1,66 @@
INTO := $(HOME)
INSTALL := \
- agignore \
- bash_logout \
- bash_profile \
- bashrc \
- config/alacritty/alacritty.yml \
- config/touchegg/touchegg.conf \
- crawlrc \
- gdbinit \
- gitconfig \
- gitignore \
- i3status.conf \
- inputrc \
- ledgerrc \
- less \
- mailcap \
- mpdconf \
- msmtprc \
- muttrc \
- nethackrc \
- notmuch-config \
- offlineimaprc \
- perlcriticrc \
- procmailrc \
- profile \
- proverc \
- replyrc \
- screenrc \
- tigrc \
- tmux.conf \
- vimrc \
- wunderground \
- xbindkeysrc \
- Xdefaults \
- xinitrc \
- xprofile \
- Xmodmap \
- zlogout \
- zshcomplete \
- zshinput \
- zshrc \
- abook \
- bin \
- config/karabiner \
- dzil \
- fortune \
- gnupg \
- hammerspoon \
- i3 \
- mpdscribble \
- ncmpcpp \
- offlineimap \
- procmail \
- services \
- sh \
- ssh \
- terminfo \
- tex \
- vim \
- weechat \
- zsh
+ .agignore \
+ .bash_logout \
+ .bash_profile \
+ .bashrc \
+ .config/alacritty/alacritty.yml \
+ .config/touchegg/touchegg.conf \
+ .crawlrc \
+ .gdbinit \
+ .gitconfig \
+ .gitignore \
+ .i3status.conf \
+ .inputrc \
+ .ledgerrc \
+ .less \
+ .mailcap \
+ .mpdconf \
+ .msmtprc \
+ .muttrc \
+ .nethackrc \
+ .notmuch-config \
+ .offlineimaprc \
+ .perlcriticrc \
+ .procmailrc \
+ .profile \
+ .proverc \
+ .replyrc \
+ .screenrc \
+ .tigrc \
+ .tmux.conf \
+ .vimrc \
+ .wunderground \
+ .xbindkeysrc \
+ .Xdefaults \
+ .xinitrc \
+ .xprofile \
+ .Xmodmap \
+ .zlogout \
+ .zshcomplete \
+ .zshinput \
+ .zshrc \
+ .abook \
+ .bin \
+ .config/karabiner \
+ .dzil \
+ .fortune \
+ .gnupg \
+ .hammerspoon \
+ .i3 \
+ .mpdscribble \
+ .ncmpcpp \
+ .offlineimap \
+ .procmail \
+ .services \
+ .sh \
+ .ssh \
+ .terminfo \
+ .tex \
+ .vim \
+ .weechat \
+ .zsh
EMPTYDIRS := \
$(patsubst services/available/%,.log/%,$(wildcard services/available/*)) \
@@ -85,8 +85,7 @@ BUILD := \
mpdscribble/mpdscribble.conf
INSTALLED := \
- $(patsubst %,$(INTO)/%/,$(EMPTYDIRS)) \
- $(patsubst %,$(INTO)/.%,$(INSTALL)) \
+ $(patsubst %,$(INTO)/%,$(EMPTYDIRS) $(INSTALL)) \
/var/spool/cron/$(USER) \
$(INTO)/Maildir/.notmuch
@@ -121,10 +120,10 @@ versions :
updates :
@git submodule foreach -q 'if [ $$path == "vim/pack/filetype/start/perl" ]; then if [ $$(git rev-parse dev) != $$sha1 ]; then git lg dev...$$sha1; fi; else if [ $$(git rev-parse master) != $$sha1 ]; then git lg master...$$sha1; fi; fi'
-$(INTO)/%/ :
+$(patsubst %,$(INTO)/%,$(EMPTYDIRS)) :
@mkdir -p $@
-$(INTO)/.% : %
+$(patsubst %,$(INTO)/%,$(INSTALL)) : $(INTO)/.% : %
@[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak
$(LN) $(PWD)/$< $@