diff --git a/ja/ports/Makefile b/ja/ports/Makefile index e7cbf030ab..eab8b8fefe 100644 --- a/ja/ports/Makefile +++ b/ja/ports/Makefile @@ -1,27 +1,20 @@ -# $FreeBSD$ +# $FreeBSD: www/ja/ports/Makefile,v 1.16 1999/09/06 07:03:22 peter Exp $ # The FreeBSD Japanese Documentation Project -# Original revision: 1.22 +# Original revision: 1.26 .if exists(../Makefile.conf) .include "../Makefile.conf" .endif - -PORTINDEX= perl5 ${.CURDIR}/portindex -INDEX= INDEX -PINDEX= ports/${INDEX} -Y2K= YEAR2000 -PY2K= ports/${Y2K} - -COOKIE= ${INDEX} Makefile.gen - -.if exists(Makefile.gen) -.include "Makefile.gen" +.if exists(../../en/ports/Makefile.inc) +.include "../../en/ports/Makefile.inc" +.endif + +CVS_READONLY?= YES +CVS_OPT+= -Q +.if !empty(CVS_READONLY) +CVS_OPT+= -R .endif -CLEANFILES+= ${DOCS} Makefile.gen ${INDEX} ${Y2K} packages.exists -cvsindex= $${CVSROOT}/${PINDEX},v -cvsy2k= $${CVSROOT}/${PY2K},v -_ALLINSTALL= packages.exists ${INDEX} ${Y2K} .if defined(NOPORTSCVS) @@ -33,10 +26,10 @@ ${Y2K}: $${PORTSBASE}/${PY2K} .else ${INDEX}: ${cvsindex} - cvs -QR co -p ${PINDEX} > ${INDEX} + cvs ${CVS_OPT} co -p ${PINDEX} > ${INDEX} ${Y2K}: ${cvsy2k} - cvs -QR co -p ${PY2K} > ${Y2K} + cvs ${CVS_OPT} co -p ${PY2K} > ${Y2K} .endif # build the list of available packages only on the @@ -52,7 +45,11 @@ packages.exists: ${cvsindex} ${cvsy2k} .if exists(${.CURDIR}/../../en/ports/packages.exists) cp ${.CURDIR}/../../en/ports/${.TARGET} . .else - sh ${.CURDIR}/../../en/ports/packages > ${.TARGET} + @if sh ${.CURDIR}/../../en/ports/packages > ${.TARGET}.temp; then \ + mv ${.TARGET}.temp ${.TARGET}; \ + else \ + rm ${.TARGET}.temp; touch ${.TARGET}; \ + fi; .endif .else touch ${.TARGET} @@ -60,10 +57,15 @@ packages.exists: ${cvsindex} ${cvsy2k} Makefile.gen: index.sgml .NOTMAIN echo DOCS= *.sgml > Makefile.gen - ${MAKE} ${MAKEFLAGS} ${.IMPSRC} index.sgml: ${INDEX} ${Y2K} packages.exists portindex ports.inc .NOTMAIN rm -f *.sgml ${PORTINDEX} ${INDEX} ${Y2K} +install: all + +all install clean: + ${MAKE} ${MAKEFLAGS} -f Makefile.inc0 ${.TARGET} + + .include "../../web.mk" diff --git a/ja/ports/Makefile.inc0 b/ja/ports/Makefile.inc0 new file mode 100644 index 0000000000..3e32bbf7f0 --- /dev/null +++ b/ja/ports/Makefile.inc0 @@ -0,0 +1,18 @@ +# $FreeBSD$ +# The FreeBSD Japanese Documentation Project +# Original revision: 1.2 + +.if exists(../Makefile.conf) +.include "../Makefile.conf" +.endif + +.if exists(../../en/ports/Makefile.inc) +.include "../../en/ports/Makefile.inc" +.endif + +.if exists(Makefile.gen) +.include "Makefile.gen" +.endif + + +.include "../web.mk"