]> Zhao Yanbai Git Server - minix.git/commitdiff
Make kernel ipc log scripts work for separate ${.OBJDIR}.
authorBen Gras <ben@minix3.org>
Thu, 22 Jul 2010 22:04:37 +0000 (22:04 +0000)
committerBen Gras <ben@minix3.org>
Thu, 22 Jul 2010 22:04:37 +0000 (22:04 +0000)
contributed by Antoine Leca.

kernel/Makefile

index bea51f22c2ea2033c0d73fbcd88d7016104dfd7c..ae199c5ec53f2af67d49c88eb2909d3ca4b31e01 100644 (file)
@@ -37,13 +37,16 @@ MAN=
 debug.d: extracted-errno.h extracted-mfield.h extracted-mtype.h
 
 extracted-errno.h: extract-errno.sh ../include/errno.h
-       sh extract-errno.sh > extracted-errno.h
+       ${_MKTARGET_CREATE}
+       cd ${.CURDIR} ; sh extract-errno.sh > ${.OBJDIR}/extracted-errno.h
 
 extracted-mfield.h: extract-mfield.sh ../lib/libc/other/*.c ../lib/libc/posix/*.c ../lib/libsys/*.c
-       sh extract-mfield.sh > extracted-mfield.h
+       ${_MKTARGET_CREATE}
+       cd ${.CURDIR} ; sh extract-mfield.sh > ${.OBJDIR}/extracted-mfield.h
 
 extracted-mtype.h: extract-mtype.sh ../include/minix/com.h
-       sh extract-mtype.sh > extracted-mtype.h
+       ${_MKTARGET_CREATE}
+       cd ${.CURDIR} ; sh extract-mtype.sh > ${.OBJDIR}/extracted-mtype.h
 
 clean:
        rm -f extracted-errno.h extracted-mfield.h extracted-mtype.h