diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2007-11-05 16:42:08 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2007-11-05 16:42:08 -0500 |
commit | e078efb6617b74873953cafa1e76414cd0993da8 (patch) | |
tree | b55ecf47893db7fa0dd8acde387916b10ba559ff /Makefile | |
parent | 4fe47e842a6d0462ddf26f4f0fd7641648f6af29 (diff) |
add
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
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 |