summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-04-23 13:27:35 +0000
committerru <ru@FreeBSD.org>2001-04-23 13:27:35 +0000
commitb6dd98ae892233907380d386f9070712168f5115 (patch)
tree11fc00b6ed461fd32ec992669440127ea5b2f7d8 /gnu
parent43a5f991258017e9affc9914294fb0e8737a74c5 (diff)
downloadFreeBSD-src-b6dd98ae892233907380d386f9070712168f5115.zip
FreeBSD-src-b6dd98ae892233907380d386f9070712168f5115.tar.gz
If the world was built using either -DNOCLEAN or -DNOCLEANDIR, it was
possible to use old generated doc-* files as the source for new ones. Wrong -mdoc files would then be installed, and man(1) failed with the following diagnostics: mdoc error: end-macro (.em) respecification is not allowed. (#41) Should this have been `.Em ...'? Put helper stuff into `beforedepend' to cleanup old files. Makefile first infected in rev 1.15. Reported via: -current
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/groff/tmac/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/groff/tmac/Makefile b/gnu/usr.bin/groff/tmac/Makefile
index c384ed3..4267cc7 100644
--- a/gnu/usr.bin/groff/tmac/Makefile
+++ b/gnu/usr.bin/groff/tmac/Makefile
@@ -72,4 +72,8 @@ beforeinstall:
${DIST_DIR}/man.local ${DESTDIR}${TMACDIR}
.endif
+# XXX - Make sure we don't use old generated files as sources.
+beforedepend:
+ rm -f doc-common doc-ditroff doc-nroff doc-syms
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud