瀏覽代碼

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 7 年之前
父節點
當前提交
a1a4c52a5d
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      Makefile

+ 3
- 1
Makefile 查看文件

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