summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-11-05 16:42:08 -0500
committerJoey Hess <joey@kodama.kitenet.net>2007-11-05 16:42:08 -0500
commite078efb6617b74873953cafa1e76414cd0993da8 (patch)
treeb55ecf47893db7fa0dd8acde387916b10ba559ff /Makefile
parent4fe47e842a6d0462ddf26f4f0fd7641648f6af29 (diff)
add
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
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