summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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