diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-09-01 17:42:09 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-09-01 17:42:09 +0000 |
commit | 3748e393a370fc70046e8b60603326b066a830ca (patch) | |
tree | 653aca1c2542a763163c0af88d8138e527fcb4d5 | |
parent | 66322679ae719ee69823c7277a32b61427d5fce1 (diff) |
Make this work both with and without "make obj" in src/usr.bin/mandoc;
suggested by bluhm@
-rw-r--r-- | regress/usr.bin/mandoc/db/dbm_dump/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/regress/usr.bin/mandoc/db/dbm_dump/Makefile b/regress/usr.bin/mandoc/db/dbm_dump/Makefile index 23e3d191186..9a8acc8648e 100644 --- a/regress/usr.bin/mandoc/db/dbm_dump/Makefile +++ b/regress/usr.bin/mandoc/db/dbm_dump/Makefile @@ -1,8 +1,17 @@ -# $OpenBSD: Makefile,v 1.1 2016/07/30 10:56:13 schwarze Exp $ +# $OpenBSD: Makefile,v 1.2 2016/09/01 17:42:08 schwarze Exp $ PROG = dbm_dump CPPFLAGS += -I${BSDSRCDIR}/usr.bin/mandoc -LDADD += ${BSDOBJDIR}/usr.bin/mandoc/dbm.o -LDADD += ${BSDOBJDIR}/usr.bin/mandoc/dbm_map.o +MOBJS = dbm.o dbm_map.o +LDADD += ${MOBJS} +CLEANFILES = ${MOBJS} + +regress: dbm_dump + +dbm_dump: ${MOBJS} + +${MOBJS}: + @cp ${BSDOBJDIR}/usr.bin/mandoc/$@ . || \ + cp ${BSDSRCDIR}/usr.bin/mandoc/$@ . .include <bsd.prog.mk> |