Changeset View
Changeset View
Standalone View
Standalone View
lib/libsysdecode/Makefile
| Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | |||||
| # mkioctls runs find(1) for headers so needs to rebuild every time. This used | # mkioctls runs find(1) for headers so needs to rebuild every time. This used | ||||
| # to be a hack only done in buildworld. | # to be a hack only done in buildworld. | ||||
| .if !defined(_SKIP_BUILD) | .if !defined(_SKIP_BUILD) | ||||
| ioctl.c.tmp: .PHONY | ioctl.c.tmp: .PHONY | ||||
| .endif | .endif | ||||
| ioctl.c.tmp: mkioctls .META | ioctl.c.tmp: mkioctls .META | ||||
| env CPP="${CPP}" MK_PF="${MK_PF}" \ | env CPP="${CPP}" MK_PF="${MK_PF}" \ | ||||
| /bin/sh ${.CURDIR}/mkioctls ${SYSROOT:U${DESTDIR}}${INCLUDEDIR} > ${.TARGET} | /bin/sh ${.CURDIR}/mkioctls ${MKTABLES_INCLUDEDIR} > ${.TARGET} | ||||
| ioctl.c: ioctl.c.tmp | ioctl.c: ioctl.c.tmp | ||||
| if [ ! -e ${.TARGET} ] || ! cmp -s ${.TARGET} ${.TARGET}.tmp; then \ | if [ ! -e ${.TARGET} ] || ! cmp -s ${.TARGET} ${.TARGET}.tmp; then \ | ||||
| mv -f ${.TARGET}.tmp ${.TARGET}; \ | mv -f ${.TARGET}.tmp ${.TARGET}; \ | ||||
| fi | fi | ||||
| beforedepend: ioctl.c tables.h tables_linux.h | beforedepend: ioctl.c tables.h tables_linux.h | ||||
| HAS_TESTS= | HAS_TESTS= | ||||
| SUBDIR.${MK_TESTS}+= tests | SUBDIR.${MK_TESTS}+= tests | ||||
| .include <bsd.lib.mk> | .include <bsd.lib.mk> | ||||