summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-29 01:12:30 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-29 01:12:30 -0400
commit2dc29dd7f07dbb6f4acbdb3474c921fed8f928b6 (patch)
treec16022113271b6efa04aecff245266f8e074eb6a /Makefile
parent97a00dd9330d5134f516afb9c7e3922550810eee (diff)
downloadconf-2dc29dd7f07dbb6f4acbdb3474c921fed8f928b6.tar.gz
conf-2dc29dd7f07dbb6f4acbdb3474c921fed8f928b6.zip
always autocreate the base path when installing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 748fa8a..5aec199 100644
--- a/Makefile
+++ b/Makefile
@@ -70,9 +70,7 @@ EMPTYDIRS := \
.cache/mpd \
.cache/vim/hist \
.cache/vim/undo \
- .config/mpd/playlists \
- .config/alacritty \
- .config/touchegg
+ .config/mpd/playlists
INSTALLED := \
$(patsubst %,$(INTO)/%,$(EMPTYDIRS) $(INSTALL)) \
@@ -131,14 +129,15 @@ $(patsubst %,$(INTO)/%,$(EMPTYDIRS)) :
$(patsubst %,$(INTO)/%,$(INSTALL)) : $(INTO)/.% : %
@[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak
+ $(MKDIR) $(notdir $@)
$(LN) $(PWD)/$< $@
/var/spool/cron/$(USER) : crontab
@crontab $<
$(INTO)/Maildir/.notmuch: notmuch
- $(MKDIR) $(INTO)/Maildir
@[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak
+ $(MKDIR) $(INTO)/Maildir
$(LN) $(PWD)/$< $@
# build targets