diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-11-24 16:02:05 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-11-24 16:02:05 +0000 |
commit | e84be2408a34a014c059579c921fda9c42532d8c (patch) | |
tree | c4dc59fd93de8cbca94244ba7d7f26339c7f3a20 /usr.bin/gprof | |
parent | eb591de0cdd1a2e5884a8e089af1ed5041c78523 (diff) |
write explicit dependencies for make -j. beforedepend creates the file,
but make -j tries to find them earlier, and can't.
Diffstat (limited to 'usr.bin/gprof')
-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: |