dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit 7bdd9ddab815326c26bf9a1e58ff70743dd4f30b
parent 97caa60fda9447eb05bf69b1f72c08d039bd1977
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 22 May 2018 05:57:59 +0000

Update Makefile.

Diffstat:
Makefile | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -5,22 +5,24 @@ all: @make -C $(DISTRO_DIR) all .PHONY: all +IGNORE=-path '*~' -prune -o + # Provision /etc -ETC_FILES_SRC:=$(shell find etc -type f -print) +ETC_FILES_SRC:=$(shell find etc $(IGNORE) -type f -print) ETC_FILES_DST:=$(patsubst %,/%,$(ETC_FILES_SRC)) $(ETC_FILES_DST): $(ETC_FILES_SRC) - @sudo cp $(patsubst /%,%,$@) $@ + rsync -pt $(patsubst /%,%,$@) $@ etc: $(ETC_FILES_DST) .PHONY: etc # Provision /usr -USR_FILES_SRC:=$(shell find usr -type f -print) +USR_FILES_SRC:=$(shell find usr $(IGNORE) -type f -print) USR_FILES_DST:=$(patsubst %,/%,$(USR_FILES_SRC)) $(USR_FILES_DST): $(USR_FILES_SRC) - @sudo cp $(patsubst /%,%,$@) $@ + rsync -pt $(patsubst /%,%,$@) $@ usr: $(USR_FILES_DST) .PHONY: usr