Merge from the English version and add new file.

1.22 -> 1.26	ports/Makefile
This commit is contained in:
Jun Kuriyama 1999-11-15 21:58:16 +00:00
parent b273267b08
commit bb459b3494
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=6073
2 changed files with 41 additions and 21 deletions

View file

@ -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"

18
ja/ports/Makefile.inc0 Normal file
View file

@ -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"