Browse Source

Better Support for Overriding Install Prefix

By not always appending "/usr" to the path, it enables install into /usr/local
and better integration with tools like stow.
Matthew Andersen 6 years ago
parent
commit
a1a4c52a5d
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Makefile

+ 3
- 1
Makefile View File

@@ -1,4 +1,6 @@
1
-PREFIX=$(DESTDIR)/usr
1
+ifeq ($(PREFIX),)
2
+	PREFIX := /usr
3
+endif
2 4
 BINDIR=$(PREFIX)/bin
3 5
 MANDIR=$(PREFIX)/share/man/man1
4 6