From dfd569ede547534967464ae0a7cc81b46cf1e426 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 3 Apr 2005 04:53:23 +0000 Subject: Make sure that $_MARCH and friends exist Submitted by: nyan@ --- include/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/Makefile b/include/Makefile index 215f1b70c0351..448fb7dd208be 100644 --- a/include/Makefile +++ b/include/Makefile @@ -162,10 +162,14 @@ copies: ${DESTDIR}${INCLUDEDIR}/machine/pc .endif .if defined(_MARCH) + ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ + ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \ cd ${.CURDIR}/../sys/${_MARCH}/include; \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ ${DESTDIR}${INCLUDEDIR}/${_MARCH} .if exists(${.CURDIR}/../sys/${_MARCH}/include/pc) + ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ + ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ cd ${.CURDIR}/../sys/${_MARCH}/include/pc; \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc @@ -240,12 +244,16 @@ symlinks: done .endif .if defined(_MARCH) + ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ + ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \ cd ${.CURDIR}/../sys/${_MARCH}/include; \ for h in *.h; do \ ln -fs ../../../sys/${_MARCH}/include/$$h \ ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \ done .if exists(${.CURDIR}/../sys/${_MARCH}/include/pc) + ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ + ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ cd ${.CURDIR}/../sys/${_MARCH}/include/pc; \ for h in *.h; do \ ln -fs ../../../../sys/${_MARCH}/include/pc/$$h \ -- cgit v1.3