summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-02-14 10:39:03 -0600
committerJesse Luehrs <doy@tozt.net>2012-02-14 10:43:23 -0600
commit32460c706dab636b1df0c7a664d42e6b0e9f6075 (patch)
tree32efdef91c5f863bed812e663c9e86d3c72b574c /Makefile
parent67349c889e35b93041552f73b216b8047817804f (diff)
downloadconf-32460c706dab636b1df0c7a664d42e6b0e9f6075.tar.gz
conf-32460c706dab636b1df0c7a664d42e6b0e9f6075.zip
have the makefile create important empty dirs on install
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 164454f..3f53c08 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,8 @@ INSTALLED = $(patsubst %,$(INTO)/.%,$(INSTALL))
BUILD = bin/nethack/timettyrec pwsafe.dat $(addsuffix .dat,$(filter-out %.dat,$(wildcard fortune/*)))
+EMPTYDIRS = .log .vim/undo .vim/yankring-data
+
ECHO = @echo
LN = @ln -sf
MKDIR = @mkdir -p
@@ -56,7 +58,7 @@ RM = @rm -f
build : $(BUILD)
install : build $(INSTALLED) /var/spool/cron/$(USER)
- $(MKDIR) .log
+ @for dir in $(EMPTYDIRS); do mkdir -p $(INTO)/$$dir; done
$(ECHO) Installed into $(HOME)
clean :