Index: head/sys/amd64/linux/Makefile =================================================================== --- head/sys/amd64/linux/Makefile (revision 356603) +++ head/sys/amd64/linux/Makefile (revision 356604) @@ -1,25 +1,28 @@ # Makefile for syscall tables # # $FreeBSD$ # Don't use an OBJDIR .OBJDIR: ${.CURDIR} .include MAKESYSCALLS= ../../tools/makesyscalls.lua SRCS= syscalls.conf \ syscalls.master GENERATED= linux_proto.h \ linux_syscall.h \ linux_syscalls.c \ linux_sysent.c \ linux_systrace_args.c all: @echo "make sysent only" +# We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than +# potentially once for each ${GENERATED} file. +.ORDER: ${GENERATED} sysent: ${GENERATED} ${GENERATED}: ${MAKESYSCALLS} ${SRCS} ${LUA} ${MAKESYSCALLS} syscalls.master syscalls.conf Index: head/sys/amd64/linux32/Makefile =================================================================== --- head/sys/amd64/linux32/Makefile (revision 356603) +++ head/sys/amd64/linux32/Makefile (revision 356604) @@ -1,25 +1,28 @@ # Makefile for syscall tables # # $FreeBSD$ # Don't use an OBJDIR .OBJDIR: ${.CURDIR} .include MAKESYSCALLS= ../../tools/makesyscalls.lua SRCS= syscalls.conf \ syscalls.master GENERATED= linux32_proto.h \ linux32_syscall.h \ linux32_syscalls.c \ linux32_sysent.c \ linux32_systrace_args.c all: @echo "make sysent only" +# We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than +# potentially once for each ${GENERATED} file. +.ORDER: ${GENERATED} sysent: ${GENERATED} ${GENERATED}: ${MAKESYSCALLS} ${SRCS} ${LUA} ${MAKESYSCALLS} syscalls.master syscalls.conf Index: head/sys/arm/linux/Makefile =================================================================== --- head/sys/arm/linux/Makefile (revision 356603) +++ head/sys/arm/linux/Makefile (revision 356604) @@ -1,25 +1,28 @@ # Makefile for syscall tables # # $FreeBSD$ # Don't use an OBJDIR .OBJDIR: ${.CURDIR} .include MAKESYSCALLS= ../../tools/makesyscalls.lua SRCS= syscalls.conf \ syscalls.master GENERATED= linux_proto.h \ linux_syscall.h \ linux_syscalls.c \ linux_sysent.c \ linux_systrace_args.c all: @echo "make sysent only" +# We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than +# potentially once for each ${GENERATED} file. +.ORDER: ${GENERATED} sysent: ${GENERATED} ${GENERATED}: ${MAKESYSCALLS} ${SRCS} ${LUA} ${MAKESYSCALLS} syscalls.master syscalls.conf Index: head/sys/arm64/linux/Makefile =================================================================== --- head/sys/arm64/linux/Makefile (revision 356603) +++ head/sys/arm64/linux/Makefile (revision 356604) @@ -1,25 +1,28 @@ # Makefile for syscall tables # # $FreeBSD$ # Don't use an OBJDIR .OBJDIR: ${.CURDIR} .include MAKESYSCALLS= ../../tools/makesyscalls.lua SRCS= syscalls.conf \ syscalls.master GENERATED= linux_proto.h \ linux_syscall.h \ linux_syscalls.c \ linux_sysent.c \ linux_systrace_args.c all: @echo "make sysent only" +# We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than +# potentially once for each ${GENERATED} file. +.ORDER: ${GENERATED} sysent: ${GENERATED} ${GENERATED}: ${MAKESYSCALLS} ${SRCS} ${LUA} ${MAKESYSCALLS} syscalls.master syscalls.conf Index: head/sys/compat/cloudabi32/Makefile =================================================================== --- head/sys/compat/cloudabi32/Makefile (revision 356603) +++ head/sys/compat/cloudabi32/Makefile (revision 356604) @@ -1,24 +1,27 @@ # $FreeBSD$ # Don't use an OBJDIR .OBJDIR: ${.CURDIR} .include MAKESYSCALLS= ../../tools/makesyscalls.lua SRCS= syscalls.conf \ ../../contrib/cloudabi/syscalls32.master GENERATED= cloudabi32_proto.h \ cloudabi32_syscall.h \ cloudabi32_syscalls.c \ cloudabi32_sysent.c \ cloudabi32_systrace_args.c all: @echo "make sysent only" +# We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than +# potentially once for each ${GENERATED} file. +.ORDER: ${GENERATED} sysent: ${GENERATED} ${GENERATED}: ${MAKESYSCALLS} ${SRCS} ${LUA} ${MAKESYSCALLS} \ ../../contrib/cloudabi/syscalls32.master syscalls.conf Index: head/sys/compat/cloudabi64/Makefile =================================================================== --- head/sys/compat/cloudabi64/Makefile (revision 356603) +++ head/sys/compat/cloudabi64/Makefile (revision 356604) @@ -1,24 +1,27 @@ # $FreeBSD$ .include # Don't use an OBJDIR .OBJDIR: ${.CURDIR} MAKESYSCALLS= ../../tools/makesyscalls.lua SRCS= syscalls.conf \ ../../contrib/cloudabi/syscalls64.master GENERATED= cloudabi64_proto.h \ cloudabi64_syscall.h \ cloudabi64_syscalls.c \ cloudabi64_sysent.c \ cloudabi64_systrace_args.c all: @echo "make sysent only" +# We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than +# potentially once for each ${GENERATED} file. +.ORDER: ${GENERATED} sysent: ${GENERATED} ${GENERATED}: ${MAKESYSCALLS} ${SRCS} ${LUA} ${MAKESYSCALLS} \ ../../contrib/cloudabi/syscalls64.master syscalls.conf Index: head/sys/compat/freebsd32/Makefile =================================================================== --- head/sys/compat/freebsd32/Makefile (revision 356603) +++ head/sys/compat/freebsd32/Makefile (revision 356604) @@ -1,26 +1,29 @@ # Makefile for syscall tables # # $FreeBSD$ # Don't use an OBJDIR .OBJDIR: ${.CURDIR} .include MAKESYSCALLS= ../../tools/makesyscalls.lua SRCS= ../../kern/capabilities.conf \ syscalls.conf \ syscalls.master GENERATED= freebsd32_proto.h \ freebsd32_syscall.h \ freebsd32_syscalls.c \ freebsd32_sysent.c \ freebsd32_systrace_args.c all: @echo "make sysent only" +# We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than +# potentially once for each ${GENERATED} file. +.ORDER: ${GENERATED} sysent: ${GENERATED} ${GENERATED}: ${MAKESYSCALLS} ${SRCS} ${LUA} ${MAKESYSCALLS} syscalls.master syscalls.conf Index: head/sys/i386/linux/Makefile =================================================================== --- head/sys/i386/linux/Makefile (revision 356603) +++ head/sys/i386/linux/Makefile (revision 356604) @@ -1,25 +1,28 @@ # Makefile for syscall tables # # $FreeBSD$ # Don't use an OBJDIR .OBJDIR: ${.CURDIR} .include MAKESYSCALLS= ../../tools/makesyscalls.lua SRCS= syscalls.conf \ syscalls.master GENERATED= linux_proto.h \ linux_syscall.h \ linux_syscalls.c \ linux_sysent.c \ linux_systrace_args.c all: @echo "make sysent only" +# We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than +# potentially once for each ${GENERATED} file. +.ORDER: ${GENERATED} sysent: ${GENERATED} ${GENERATED}: ${MAKESYSCALLS} ${SRCS} ${LUA} ${MAKESYSCALLS} syscalls.master syscalls.conf Index: head/sys/kern/Makefile =================================================================== --- head/sys/kern/Makefile (revision 356603) +++ head/sys/kern/Makefile (revision 356604) @@ -1,27 +1,30 @@ # @(#)Makefile 8.2 (Berkeley) 3/21/94 # $FreeBSD$ # # Makefile for init_sysent # Don't use an OBJDIR .OBJDIR: ${.CURDIR} .include MAKESYSCALLS= ../tools/makesyscalls.lua SRCS= capabilities.conf \ syscalls.master GENERATED= init_sysent.c \ syscalls.c \ systrace_args.c \ ../sys/syscall.h \ ../sys/syscall.mk \ ../sys/sysproto.h all: @echo "make sysent only" +# We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than +# potentially once for each ${GENERATED} file. +.ORDER: ${GENERATED} sysent: ${GENERATED} ${GENERATED}: ${MAKESYSCALLS} ${SRCS} ${LUA} ${MAKESYSCALLS} syscalls.master