summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-22 10:52:45 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-22 10:52:45 +0200
commit05080faf9d11e5b475710dc3a8094461989b874b (patch)
tree0e2aab007a7d574f1cbe560ba778bbd20f497c32 /Makefile
parentd1b176119a4c4152f762e31aeca2b855f8404ad9 (diff)
Added makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..89880b4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+prefix ?= /usr/local
+
+build/envstore.1: bin/envstore
+ mkdir -p build
+ pod2man $< > $@
+
+install: build/envstore.1
+ install -m 755 -D bin/envstore $(prefix)/bin/envstore
+ install -m 644 -D build/envstore.1 $(prefix)/share/man/man1/envstore.1
+
+uninstall:
+ $(RM) $(prefix)/bin/envstore
+ $(RM) $(prefix)/share/man/man1/envstore
+
+clean:
+ $(RM) -r build
+
+.PHONY: install uninstall clean