changeset 12:c2634f05ecdf

Makefile: DESTDIR+PREFIX
author ng0 <ng0@crash.cx>
date Thu, 22 Feb 2018 16:17:38 +0000
parents e44b90f68009
children 44e86db92f32
files Makefile
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Feb 22 16:14:19 2018 +0000
+++ b/Makefile	Thu Feb 22 16:17:38 2018 +0000
@@ -26,9 +26,9 @@
 cvsps: $(OBJS)
 
 install:
-	install -d $(PREFIX)/bin $(MANPREFIX)/man1
-	install -m 755 cvsps $(PREFIX)/bin
-	install -m 644 cvsps.1 $(MANPREFIX)/man1
+	install -d ${DESTDIR}${PREFIX}/bin ${MANPREFIX}/man1
+	install -m 755 cvsps ${DESTDIR}${PREFIX}/bin
+	install -m 644 cvsps.1 ${DESTDIR}${MANPREFIX}/man1
 
 clean:
 	rm -f cvsps *.o cbtcommon/*.o core