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