|
Revision 2608, 0.8 KB
(checked in by jkoshy, 9 months ago)
|
|
Support the install target on OpenBSD 5.
Ticket: #407
|
-
Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 | # |
|---|
| 2 | # Rules for handling include files. |
|---|
| 3 | # |
|---|
| 4 | # $Id$ |
|---|
| 5 | |
|---|
| 6 | .if !defined(TOP) |
|---|
| 7 | .error Make variable \"TOP\" has not been defined. |
|---|
| 8 | .endif |
|---|
| 9 | |
|---|
| 10 | .include "${TOP}/mk/elftoolchain.os.mk" |
|---|
| 11 | |
|---|
| 12 | .include <bsd.own.mk> |
|---|
| 13 | |
|---|
| 14 | .if ${OS_HOST} == "DragonFly" || ${OS_HOST} == "FreeBSD" || \ |
|---|
| 15 | ${OS_HOST} == "OpenBSD" |
|---|
| 16 | # Simulate <bsd.inc.mk>. |
|---|
| 17 | |
|---|
| 18 | NOBINMODE?= 444 # Missing in OpenBSD's rule set. |
|---|
| 19 | |
|---|
| 20 | .PHONY: incinstall |
|---|
| 21 | includes: ${INCS} incinstall |
|---|
| 22 | .for inc in ${INCS} |
|---|
| 23 | install incinstall:: ${DESTDIR}${INCSDIR}/${inc} |
|---|
| 24 | .PRECIOUS: ${DESTDIR}${INCSDIR}/${inc} |
|---|
| 25 | ${DESTDIR}${INCSDIR}/${inc}: ${inc} |
|---|
| 26 | cmp -s $> $@ > /dev/null 2>&1 || \ |
|---|
| 27 | ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} $> $@ |
|---|
| 28 | .endfor |
|---|
| 29 | .else |
|---|
| 30 | |
|---|
| 31 | # Provide a default 'install' target. |
|---|
| 32 | install: incinstall .PHONY |
|---|
| 33 | |
|---|
| 34 | # Use the standard <bsd.inc.mk>. |
|---|
| 35 | .include <bsd.inc.mk> |
|---|
| 36 | .endif |
|---|