Browse Source

Restore DESTDIR support.

Matthew Andersen 6 years ago
parent
commit
478d2040b3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Makefile

+ 2
- 2
Makefile View File

@@ -1,8 +1,8 @@
1 1
 ifeq ($(PREFIX),)
2 2
 	PREFIX := /usr
3 3
 endif
4
-BINDIR=$(PREFIX)/bin
5
-MANDIR=$(PREFIX)/share/man/man1
4
+BINDIR=$(DESTDIR)$(PREFIX)/bin
5
+MANDIR=$(DESTDIR)$(PREFIX)/share/man/man1
6 6
 
7 7
 CC=gcc
8 8
 CFLAGS=-std=c89 -O2 -pedantic -Wall -I"./include" -D_XOPEN_SOURCE=500