diff options
author | 2007-11-24 16:02:04 +0000 | |
---|---|---|
committer | 2007-11-24 16:02:04 +0000 | |
commit | 979e8d826780d2c057bca82251f96b5dc54739e9 (patch) | |
tree | f0318af0a62d66833d4092ac1f0020f3129b226b | |
parent | fix race condition, as reported by naddy@. (diff) | |
download | wireguard-openbsd-979e8d826780d2c057bca82251f96b5dc54739e9.tar.xz wireguard-openbsd-979e8d826780d2c057bca82251f96b5dc54739e9.zip |
write explicit dependencies for make -j. beforedepend creates the file,
but make -j tries to find them earlier, and can't.
-rw-r--r-- | usr.bin/gprof/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/gprof/Makefile b/usr.bin/gprof/Makefile index 56f719a268d..efa42522fbc 100644 --- a/usr.bin/gprof/Makefile +++ b/usr.bin/gprof/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.14 2003/07/22 17:15:13 brad Exp $ +# $OpenBSD: Makefile,v 1.15 2007/11/24 16:02:04 espie Exp $ .include <bsd.own.mk> @@ -15,11 +15,17 @@ SRCS+=elf.c .else SRCS+=aout.c .endif - .if defined(PROG) beforedepend: ln -sf ${.CURDIR}/${TARGET_MACHINE_ARCH}.h machine.h ln -sf ${.CURDIR}/${TARGET_MACHINE_ARCH}.c machine.c + +machine.c: + ln -sf ${.CURDIR}/${TARGET_MACHINE_ARCH}.c machine.c + +machine.h: + ln -sf ${.CURDIR}/${TARGET_MACHINE_ARCH}.h machine.h + .endif # defined (PROG) beforeinstall: |