Skip to content

Commit

Permalink
include/i386: fix release builds
Browse files Browse the repository at this point in the history
Add a target to ensure the presence of /usr/include/i386
before we try to install files.  In the buildworld/installworld path
it gets created different ways, but for distribute (used in releases)
we need it in the subdir.

(Creating of this the x86, pc, powerpc directories is far too complex.
We should look for ways to simplify it.)

Reported by:	lwhsu
Fixes:		a09ea2b
  • Loading branch information
brooksdavis committed Jun 13, 2022
1 parent 1575804 commit 1a2ff85
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/i386/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ INCS+= \
pcpu_aux.h
INCSDIR= ${INCLUDEDIR}/i386

beforeinstall: i386dir
META_TARGETS+= i386dir

i386dir:
${INSTALL} -d ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 \
${DESTDIR}${INCLUDEDIR}/i386


.include <bsd.prog.mk>

0 comments on commit 1a2ff85

Please sign in to comment.