summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.info.mk
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-01-04 22:01:58 +0000
committerache <ache@FreeBSD.org>1995-01-04 22:01:58 +0000
commit60416d0456fe5cfecace92c61ab9a04b5737dc4f (patch)
treed077c02c267cb68fbced96693fda8e4864329a72 /share/mk/bsd.info.mk
parentd107f797aac203400c03ca8d1dfdde40641340f3 (diff)
downloadFreeBSD-src-60416d0456fe5cfecace92c61ab9a04b5737dc4f.zip
FreeBSD-src-60416d0456fe5cfecace92c61ab9a04b5737dc4f.tar.gz
Fix building of target with multiply sources
Diffstat (limited to 'share/mk/bsd.info.mk')
-rw-r--r--share/mk/bsd.info.mk14
1 files changed, 8 insertions, 6 deletions
diff --git a/share/mk/bsd.info.mk b/share/mk/bsd.info.mk
index 3bdb1a9..2a2e84b 100644
--- a/share/mk/bsd.info.mk
+++ b/share/mk/bsd.info.mk
@@ -5,15 +5,17 @@ MAKEINFOFLAGS?= # --no-split would simplify some things, e.g., compression
.SUFFIXES: .info .texi .texinfo
.texi.info:
- ${MAKEINFO} ${MAKEINFOFLAGS} ${.IMPSRC} -o ${.TARGET}
+ ${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${.IMPSRC} -o ${.TARGET}
.texinfo.info:
- ${MAKEINFO} ${MAKEINFOFLAGS} ${.IMPSRC} -o ${.TARGET}
+ ${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${.IMPSRC} -o ${.TARGET}
+
+.PATH: ${.CURDIR}
-.if defined(SRCS)
-all: ${INFO:S/$/.info/g}
- ${MAKEINFO} ${MAKEINFOFLAGS} ${SRCS} -o ${INFO:S/$/.info/g}
-.else
all: ${INFO:S/$/.info/g}
+
+.if defined(SRCS)
+${INFO}.info: ${SRCS}
+ ${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${SRCS:S/^/${.CURDIR}\//g} -o ${INFO}.info
.endif
depend:;
OpenPOWER on IntegriCloud