Module Name: src
Committed By: rin
Date: Sun Aug 18 03:49:23 UTC 2024
Modified Files:
src/share/mk: bsd.info.mk
Log Message:
bsd.info.mk: Install INFOFILES as is, if TEXINFO is empty
This allows us to install pre-generated info files. NFCI otherwise.
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/share/mk/bsd.info.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/bsd.info.mk
diff -u src/share/mk/bsd.info.mk:1.45 src/share/mk/bsd.info.mk:1.46
--- src/share/mk/bsd.info.mk:1.45 Sun Jun 16 21:11:53 2024
+++ src/share/mk/bsd.info.mk Sun Aug 18 03:49:23 2024
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.info.mk,v 1.45 2024/06/16 21:11:53 hgutch Exp $
+# $NetBSD: bsd.info.mk,v 1.46 2024/08/18 03:49:23 rin Exp $
.include <bsd.init.mk>
@@ -13,6 +13,7 @@ INFOFILES?=
##### Build rules
.if ${MKINFO} != "no"
+.if defined(TEXINFO)
INFOFILES= ${TEXINFO:C/\.te?xi(nfo)?$/.info/}
realall: ${INFOFILES}
@@ -23,6 +24,7 @@ realall: ${INFOFILES}
.txi.info .texi.info .texinfo.info:
${_MKTARGET_CREATE}
${TOOL_MAKEINFO} ${INFOFLAGS} --no-split --no-version-header -o ${.TARGET} ${.IMPSRC}
+.endif # defined(TEXINFO)
.endif # ${MKINFO} != "no"
@@ -80,7 +82,9 @@ infoinstall:: ${_F}
.endif # ${MKINFO} != "no"
##### Clean rules
+.if defined(TEXINFO)
CLEANDIRFILES+= ${INFOFILES}
+.endif
##### Pull in related .mk logic
.include <bsd.obj.mk>