dip

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

commit 22b6affea755d7a8bf4cf2577662f44fe214b430
parent f449addc4e416cfbb7290944c14aac0603945c4a
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun,  6 May 2018 14:48:51 +0000

distros/debian/Makefile: Add `etc` target.

Diffstat:
distros/debian/Makefile | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/distros/debian/Makefile b/distros/debian/Makefile @@ -25,3 +25,13 @@ SUDO_S_DST:=/$(SUDO_S_SRC) $(SUDO_S_DST): $(SUDO_S_SRC) @su -c "cp $< $@" +## etc +ETC_IGNORE:=-path etc/sudoers.d -prune -o +ETC_FILES_SRC:=$(shell find etc $(ETC_IGNORE) -type f -print) +ETC_FILES_DST:=$(patsubst %,/%,$(ETC_FILES_SRC)) + +$(ETC_FILES_DST): $(SUDO_S_DST) $(ETC_FILES_SRC) + @sudo cp $(patsubst /%,%,$@) $@ + +etc: $(ETC_FILES_DST) +.PHONY: etc