diff options
author | ru <ru@FreeBSD.org> | 2001-04-23 13:27:35 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-04-23 13:27:35 +0000 |
commit | b6dd98ae892233907380d386f9070712168f5115 (patch) | |
tree | 11fc00b6ed461fd32ec992669440127ea5b2f7d8 | |
parent | 43a5f991258017e9affc9914294fb0e8737a74c5 (diff) | |
download | FreeBSD-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
-rw-r--r-- | gnu/usr.bin/groff/tmac/Makefile | 4 |
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> |