Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
a1a4c52a5d
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3
    1
      Makefile

+ 3
- 1
Makefile Parādīt failu

@@ -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