From e078efb6617b74873953cafa1e76414cd0993da8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 5 Nov 2007 16:42:08 -0500 Subject: add --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..75a329b --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +install: + mkdir -p $(PREFIX)/usr/lib/etckeeper/ + cp -a *.d $(PREFIX)/usr/lib/etckeeper/ + + install -D etckeeper $(PREFIX)/usr/bin/etckeeper + for dir in *.d; do \ + command=$$(echo "$$dir" | sed -e 's/\.d$$//'); \ + ln -s etckeeper $(PREFIX)/usr/bin/etckeeper-$$command; \ + done + + for dir in *.d; do \ + mkdir -p $(PREFIX)/etc/etckeeper/$$dir; \ + for file in $$dir/*; do \ + ln -sf /usr/lib/etckeeper/$$file $(PREFIX)/etc/etckeeper/$$file; \ + done; \ + done -- cgit v1.2.3