From 2dc29dd7f07dbb6f4acbdb3474c921fed8f928b6 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 29 Oct 2018 01:12:30 -0400 Subject: always autocreate the base path when installing --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-54-g00ecf