summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ec85e7e..b82db39 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,14 @@
SHELL = /bin/sh
+prefix = /usr/local
.PHONY: all clean
+all clean:
+ @$(MAKE) -C src/ $@
-all:
- @$(MAKE) -C src/
+.PHONY: distclean
+distclean: clean
-clean:
- @$(MAKE) -C src/ $@
+.PHONY: install uninstall
+install uninstall:
+ $(eval dd := $(shell test -z "$(DESTDIR)" || realpath -m "$(DESTDIR)"))
+ @$(MAKE) -C src/ $@ DESTDIR=$(dd) prefix=$(prefix)