summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-03-03 01:32:27 -0500
committerJesse Luehrs <doy@tozt.net>2018-03-03 01:33:10 -0500
commit207bf23e4e48eaaa06ad31302ea282f8b7ca4ddc (patch)
tree917068eb1cb18a6f9ff570e1684681a8c596f5b0 /Makefile
parentb940dca405885674d02f5d7d318615d7a3390891 (diff)
downloadconf-207bf23e4e48eaaa06ad31302ea282f8b7ca4ddc.tar.gz
conf-207bf23e4e48eaaa06ad31302ea282f8b7ca4ddc.zip
fix makefile directory creation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index fa2adc7..dbaa812 100644
--- a/Makefile
+++ b/Makefile
@@ -60,13 +60,6 @@ INSTALL = agignore \
vim \
weechat \
zsh
-INSTALLED = $(patsubst %,$(INTO)/.%,$(INSTALL))
-
-BUILD = bin/local/timettyrec \
- $(addsuffix .dat,$(filter-out %.dat,$(wildcard fortune/*))) \
- $(addsuffix tags,$(wildcard vim/pack/*/start/*/doc/)) \
- vim/spell/en.utf-8.add.spl \
- less
EMPTYDIRS = $(patsubst services/%,.log/%,$(wildcard services/*)) \
Maildir \
@@ -78,6 +71,15 @@ EMPTYDIRS = $(patsubst services/%,.log/%,$(wildcard services/*)) \
.config/mpd/playlists \
.config/touchegg
+INSTALLED = $(patsubst %,$(INTO)/%/,$(EMPTYDIRS)) \
+ $(patsubst %,$(INTO)/.%,$(INSTALL))
+
+BUILD = bin/local/timettyrec \
+ $(addsuffix .dat,$(filter-out %.dat,$(wildcard fortune/*))) \
+ $(addsuffix tags,$(wildcard vim/pack/*/start/*/doc/)) \
+ vim/spell/en.utf-8.add.spl \
+ less
+
ECHO = @echo
LN = @ln -sf
MKDIR = @mkdir -p
@@ -91,7 +93,6 @@ submodules :
build : $(BUILD)
install : all $(INSTALLED) /var/spool/cron/$(USER) $(INTO)/Maildir/.notmuch
- @for dir in $(EMPTYDIRS); do mkdir -p $(INTO)/$$dir; done
@chmod 600 msmtprc
@chmod 700 gnupg
$(ECHO) Installed into $(INTO)
@@ -111,6 +112,9 @@ 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)/%/ :
+ @mkdir -p $@
+
$(INTO)/.% : %
@[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak
$(LN) $(PWD)/$< $@