diff options
Diffstat (limited to 'share/doc/usd/19.memacros/Makefile')
-rw-r--r-- | share/doc/usd/19.memacros/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/share/doc/usd/19.memacros/Makefile b/share/doc/usd/19.memacros/Makefile index c9d2e7d..7378d09 100644 --- a/share/doc/usd/19.memacros/Makefile +++ b/share/doc/usd/19.memacros/Makefile @@ -2,8 +2,20 @@ # $FreeBSD$ VOLUME= usd/19.memacros -SRCS= meintro.me +SRCS= meintro.me-sed MACROS= -me -SRCDIR= ${.CURDIR}/../../../../contrib/groff/doc +SRCDIR= ${.OBJDIR} + +GROFFDIR=${.CURDIR}/../../../../contrib/groff + +.PATH: ${GROFFDIR}/doc + +version=`cat ${GROFFDIR}/VERSION` +revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' ${GROFFDIR}/REVISION` + +meintro.me-sed: meintro.me + sed -e "s;@VERSION@;$(version)$(revision);" ${.ALLSRC} > ${.TARGET} + +CLEANFILES+=${SRCS} .include <bsd.doc.mk> |