dip

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

commit 4d3ce68e2546b1f82e80442c8cbb9256d5b90304
parent bc1134d74c742f9422db642c7c74b5a9baf0e5d5
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 14 Oct 2018 21:38:49 -0400

Makefile: Remove usr, add usrbin.

usrbin only works on openbsd; not tested in gnu/linux.

Diffstat:
Makefile | 18++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/Makefile b/Makefile @@ -22,16 +22,14 @@ $(ETC_FILES_DST): $(ETC_FILES_SRC) etc: $(ETC_FILES_DST) .PHONY: etc -# Provision /usr -USR_IGNORE:=-path $(LCONFIG_DST) -prune -o -USR_FILES_SRC:=$(shell find usr $(USR_IGNORE) $(IGNORE) -type f -print) -USR_FILES_DST:=$(patsubst %,/%,$(USR_FILES_SRC)) - -$(USR_FILES_DST): $(USR_FILES_SRC) - rsync -pt $(patsubst /%,%,$@) $@ - -usr: $(USR_FILES_DST) -.PHONY: usr +# Provision /usr/local/bin +USRBIN_PREFIX:=usr/local/bin +USRBIN_FILES:=alarm x-setup +usrbin: +.for f in ${USRBIN_FILES} + rsync -a ${USRBIN_PREFIX}/${f} /${USRBIN_PREFIX}/${f} +.endfor +.PHONY: usrbin # Provision /root root-dirs: