summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-21 18:41:50 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-21 18:41:50 +0200
commitd9ba0bbb26c9de741e1eaaa8506437572764c2aa (patch)
tree93cd6f439e9cc55c3c5b0b68c81fcbbb7c4adcdd
parente9fee40fd570c745b5164b3344564d8c1ac9f248 (diff)
Added makefile
-rw-r--r--.gitignore1
-rw-r--r--Makefile18
2 files changed, 19 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..378eac2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+build
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..18e45b6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+prefix ?= /usr/local
+
+build/efa.1: bin/efa
+ mkdir -p build
+ pod2man $< > $@
+
+install: build/efa.1
+ install -m 755 -D bin/efa $(prefix)/bin/efa
+ install -m 644 -D build/efa.1 $(prefix)/share/man/man1/efa.1
+
+uninstall:
+ $(RM) $(prefix)/bin/efa
+ $(RM) $(prefix)/share/man/man1/efa.1
+
+clean:
+ $(RM) -r build
+
+.PHONY: install uninstall clean