summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-10-29 20:36:54 -0400
committerJesse Luehrs <doy@tozt.net>2017-10-29 21:47:38 -0400
commitd32b037f4ef3f6a4434bd563257dfc43443ae4f5 (patch)
treeadd08cdd103dc09db526ac6ee981da0ed66ae0c3 /Makefile
parent159a931fd7ce7822789ecf34aaf5ef4418b26fac (diff)
downloadconf-d32b037f4ef3f6a4434bd563257dfc43443ae4f5.tar.gz
conf-d32b037f4ef3f6a4434bd563257dfc43443ae4f5.zip
fix make update
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 05746d9..732b5b2 100644
--- a/Makefile
+++ b/Makefile
@@ -82,12 +82,14 @@ LN = @ln -sf
MKDIR = @mkdir -p
RM = @rm -f
-build : submodules $(BUILD)
+all : submodules build
submodules :
@git submodule update --init --recursive
-install : build $(INSTALLED) /var/spool/cron/$(USER) $(INTO)/Maildir/.notmuch
+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
@@ -99,8 +101,8 @@ clean :
$(RM) $(BUILD) $(INSTALLED)
update :
- @git submodule foreach '(if [ $$name == "vim/pack/local/start/perl" ]; then git checkout dev; else git checkout master; fi) && git pull'
- @$(MAKE)
+ @git submodule foreach '(if [ $$path == "vim/pack/filetype/start/perl" ]; then git checkout dev; else git checkout master; fi) && git pull'
+ @$(MAKE) build
$(INTO)/.% : %
@[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak