summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2017-01-03 23:10:57 +0000
committerbdrewery <bdrewery@FreeBSD.org>2017-01-03 23:10:57 +0000
commit4d1e85786c9543e55fd7233bd9d6e85458b5504f (patch)
tree4baef497a290cc027206f2f08c01b67aa3a8dad5 /lib
parentf8a5ad0fea21893360959ae794e2fe447defad9d (diff)
downloadFreeBSD-src-4d1e85786c9543e55fd7233bd9d6e85458b5504f.zip
FreeBSD-src-4d1e85786c9543e55fd7233bd9d6e85458b5504f.tar.gz
MFC r308603:
Move libsysdecode-specific hack out of buildworld.
Diffstat (limited to 'lib')
-rw-r--r--lib/libsysdecode/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libsysdecode/Makefile b/lib/libsysdecode/Makefile
index 123ea49..0ec1212 100644
--- a/lib/libsysdecode/Makefile
+++ b/lib/libsysdecode/Makefile
@@ -36,7 +36,12 @@ CFLAGS.gcc.ioctl.c+= -Wno-unused
CFLAGS.gcc+= ${CFLAGS.gcc.${.IMPSRC}}
-ioctl.c: mkioctls
+# mkioctls runs find(1) for headers so needs to rebuild every time. This used
+# to be a hack only done in buildworld.
+.if !defined(_SKIP_BUILD)
+ioctl.c: .PHONY
+.endif
+ioctl.c: mkioctls .META
env MACHINE=${MACHINE} CPP="${CPP}" \
/bin/sh ${.CURDIR}/mkioctls ${DESTDIR}${INCLUDEDIR} > ${.TARGET}
OpenPOWER on IntegriCloud