diff options
author | 2013-05-26 17:55:03 +0200 | |
---|---|---|
committer | 2013-05-26 17:55:03 +0200 | |
commit | a3ee1cf373ac71bd5523acfa91f68ad6fe5b30b5 (patch) | |
tree | 23b35d5b2fa3c0874166f838719145eacc9073ff /dotfiles2.mk | |
parent | 99b4ee7cd9c1ef29ba7bf2dbfce040a233d66469 (diff) | |
download | dotfiles-a3ee1cf373ac71bd5523acfa91f68ad6fe5b30b5.tar.gz dotfiles-a3ee1cf373ac71bd5523acfa91f68ad6fe5b30b5.zip |
Add dotfiles2.mk
This should replace dotfiles.mk soon
Diffstat (limited to 'dotfiles2.mk')
-rw-r--r-- | dotfiles2.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dotfiles2.mk b/dotfiles2.mk new file mode 100644 index 0000000..521b06d --- /dev/null +++ b/dotfiles2.mk @@ -0,0 +1,17 @@ +DESTDIR?=$(HOME) +DESTDIR:=$(DESTDIR)/$(SUBDIR) + +RSYNC=rsync +RFLAGS=--links --perms --times --group --owner --dirs --verbose \ + --update --delete --exclude=Makefile --exclude=.gitignore \ + $(addprefix --exclude=,$(EXCLUDE)) + +install-modules=$(addprefix install-,$(MODULES)) + +install: $(install-modules) + @echo "Syncing $(CURDIR)/ with $(DESTDIR)" + @$(RSYNC) $(RFLAGS) $(CURDIR)/ $(DESTDIR) + @echo + +$(install-modules): install-%: + @DESTDIR=$(DESTDIR) $(MAKE) -s -C $* install |