diff --git a/de/Makefile b/de/Makefile index 0355382820..af84e6a6a4 100644 --- a/de/Makefile +++ b/de/Makefile @@ -1,41 +1,41 @@ # The FreeBSD Documentation Project # The FreeBSD German Documentation Project -# $FreeBSD$ +# $FreeBSD: www/de/Makefile,v 1.1 2001/02/25 11:54:42 alex Exp $ # $FreeBSDde: de-www/Makefile,v 1.6 2001/02/25 11:48:33 alex Exp $ .if exists(Makefile.conf) .include "Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif # These are turned into validated, normalized HTML files. DOCS+= availability.sgml DOCS+= index.sgml CLEANFILES+=atoz.sgml site.sgml # These will be directly installed. #DATA= robots.txt index.html # Subdirectories # SGML #.if !defined(WEB_ONLY) || empty(WEB_ONLY) #SUBDIR+= ports #.endif .if !defined(WEB_ONLY) || empty(WEB_ONLY) # Extern #SUBDIR+= tutorials DOCSUBDIR= FAQ handbook .endif -SGMLOPTS+= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr +SGMLFLAGS+= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr WEBDIR= data/de .include "${WEB_PREFIX}/share/mk/web.site.mk" diff --git a/en/Makefile b/en/Makefile index 258241e02d..78066d5b69 100644 --- a/en/Makefile +++ b/en/Makefile @@ -1,120 +1,120 @@ -# $FreeBSD: www/en/Makefile,v 1.74 2001/10/29 10:14:30 murray Exp $ +# $FreeBSD: www/en/Makefile,v 1.75 2001/11/14 18:31:14 phantom Exp $ .if exists(Makefile.conf) .include "Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif # These are turned into validated, normalized HTML files. DOCS= applications.sgml DOCS+= auditors.sgml DOCS+= availability.sgml DOCS+= docs.sgml DOCS+= features.sgml DOCS+= register.sgml DOCS+= internet.sgml DOCS+= mailto.sgml DOCS+= publish.sgml DOCS+= relnotes.sgml DOCS+= send-pr.sgml DOCS+= support.sgml DOCS+= where.sgml DOCS+= y2kbug.sgml # These will be directly installed. DATA= favicon.ico DATA+= robots.txt # Subdirectories # SGML SUBDIR= security SUBDIR+= commercial SUBDIR+= docproj SUBDIR+= news SUBDIR+= internal SUBDIR+= java SUBDIR+= copyright SUBDIR+= search SUBDIR+= gallery SUBDIR+= projects SUBDIR+= prstats SUBDIR+= platforms SUBDIR+= releases SUBDIR+= smp SUBDIR+= conspectus .if !defined(WEB_ONLY) || empty(WEB_ONLY) SUBDIR+= ports SUBDIR+= doc .endif .if defined(BUILD_RELNOTES) SUBDIR+= relnotes .endif # These *must* be listed after the "doc" subdir, as they create symlinks # in to it. .if !defined(WEB_ONLY) || empty(WEB_ONLY) SUBDIR+= tutorials .endif # Non-SGML SUBDIR+= gifs SUBDIR+= cgi WEB_LANG?= ja es ru zh de COOKIE= FAQ handbook # Non-English .if !defined(ENGLISH_ONLY) || empty(ENGLISH_ONLY) .for DIR in ${WEB_LANG} SUBDIR+= ../${DIR} .endfor .endif WEBDIR= data # index.html is special, and generated from index.xsl and news/news.xml DATA+= index.html CLEANFILES+= index.html index.html: index.xsl news/news.xml news/press.xml includes.xsl news/includes.xsl - ${XSLTPROC} ${XSLTPROCFLAGS} -o index.html \ + ${XSLTPROC} ${XSLTPROCOPTS} -o index.html \ ${.CURDIR}/index.xsl ${.CURDIR}/news/news.xml - -${TIDY} ${TIDYFLAGS} index.html + -${TIDY} ${TIDYOPTS} index.html # Handle the FAQ/ and handbook/ directories specially. FAQ: ${LN} -fs ${.OBJDIR}/../../doc/en_US.ISO8859-1/books/faq FAQ handbook: ${LN} -fs ${.OBJDIR}/../../doc/en_US.ISO8859-1/books/handbook handbook # In "make obj" case FAQ and handbook are symlinks and have to be removed # at "make clean" .if ${.OBJDIR} != ${.CURDIR} CLEANFILES+= FAQ CLEANFILES+= handbook .endif afterinstall: cd ${DOCINSTALLDIR}; \ ${LN} -fs doc/en_US.ISO8859-1/books/faq ${DOCINSTALLDIR}/FAQ cd ${DOCINSTALLDIR}; \ ${LN} -fs doc/en_US.ISO8859-1/books/handbook ${DOCINSTALLDIR}/handbook LINBOT?= ${PREFIX}/bin/linbot -LINBOTFLAGS?= -ab +LINBOTOPTS?= -ab LINBOTDIR?= /linbot LINBOTINSTALLDIR?= ${DESTDIR}${LINBOTDIR} LINBOTURL?= http://www.FreeBSD.org/ linbot: @[ -d ${LINBOTINSTALLDIR} ] || ${MKDIR} ${LINBOTINSTALLDIR} - ${LINBOT} ${LINBOTFLAGS} -o ${LINBOTINSTALLDIR} ${LINBOTURL} + ${LINBOT} ${LINBOTOPTS} -o ${LINBOTINSTALLDIR} ${LINBOTURL} .include "${WEB_PREFIX}/share/mk/web.site.mk" diff --git a/en/gallery/Makefile b/en/gallery/Makefile index 96f51f45f5..60036dc450 100644 --- a/en/gallery/Makefile +++ b/en/gallery/Makefile @@ -1,39 +1,39 @@ -# $FreeBSD: www/en/gallery/Makefile,v 1.13 2001/09/05 07:51:40 kuriyama Exp $ +# $FreeBSD: www/en/gallery/Makefile,v 1.14 2001/10/29 10:14:31 murray Exp $ .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif XSLTPROCFLAGS= --catalogs XSLT= ${SETENV} SGML_CATALOG_FILES=${PREFIX}/share/xml/dtd/xhtml/xhtml.soc \ - ${XSLTPROC} ${XSLTPROCFLAGS} + ${XSLTPROC} ${XSLTPROCOPTS} INDEXLINK= gallery.html DATA+= gallery.html cgallery.html npgallery.html pgallery.html CLEANFILES+= ${DATA} gallery.html: gallery.xml gallery.xsl ../includes.xsl ${XSLT} ${.CURDIR}/gallery.xsl ${.CURDIR}/gallery.xml > ${.TARGET} - -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} cgallery.html: gallery.xml gallery-entry.xsl ${XSLT} --param type \'commercial\' \ ${.CURDIR}/gallery-entry.xsl ${.CURDIR}/gallery.xml > ${.TARGET} - -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} npgallery.html: gallery.xml gallery-entry.xsl ${XSLT} --param type \'nonprofit\' \ ${.CURDIR}/gallery-entry.xsl ${.CURDIR}/gallery.xml > ${.TARGET} - -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} pgallery.html: gallery.xml gallery-entry.xsl ${XSLT} --param type \'personal\' \ ${.CURDIR}/gallery-entry.xsl ${.CURDIR}/gallery.xml > ${.TARGET} - -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} .include "${WEB_PREFIX}/share/mk/web.site.mk" diff --git a/en/news/Makefile b/en/news/Makefile index 332433605b..3abb95c27c 100644 --- a/en/news/Makefile +++ b/en/news/Makefile @@ -1,51 +1,51 @@ -# $FreeBSD: www/en/news/Makefile,v 1.29 2001/09/05 15:31:58 kuriyama Exp $ +# $FreeBSD: www/en/news/Makefile,v 1.30 2001/10/29 10:14:31 murray Exp $ .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif #DOCS+= press.sgml DOCS+= news.sgml #DOCS+= webchanges.sgml # press releases DOCS+= pressreleases.sgml DOCS+= press-rel-1.sgml DOCS+= press-rel-2.sgml DOCS+= press-rel-3.sgml DOCS+= press-rel-4.sgml DOCS+= press-rel-5.sgml # The yearly State of the Union address DOCS+= sou1999.sgml INDEXLINK= news.html SUBDIR= 1996 SUBDIR+= 1997 SUBDIR+= 1998 SUBDIR+= 1999 SUBDIR+= 2000 SUBDIR+= status DATA= newsflash.html news.rdf press.html CLEANFILES+= newsflash.html news.rdf press.html newsflash.html: newsflash.xsl news.xml includes.xsl ../includes.xsl - ${XSLTPROC} ${XSLTPROCFLAGS} -o ${.TARGET} \ + ${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \ ${.CURDIR}/newsflash.xsl ${.CURDIR}/news.xml - -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} news.rdf: news-rdf.xsl news.xml includes.xsl ../includes.xsl - ${XSLTPROC} ${XSLTPROCFLAGS} -o ${.TARGET} \ + ${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \ ${.CURDIR}/news-rdf.xsl ${.CURDIR}/news.xml press.html: press.xsl press.xml includes.xsl ../includes.xsl - ${XSLTPROC} ${XSLTPROCFLAGS} -o ${.TARGET} \ + ${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \ ${.CURDIR}/press.xsl ${.CURDIR}/press.xml - -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} .include "${WEB_PREFIX}/share/mk/web.site.mk" diff --git a/en/news/status/Makefile b/en/news/status/Makefile index 4e98934cfb..5facacfbaf 100644 --- a/en/news/status/Makefile +++ b/en/news/status/Makefile @@ -1,31 +1,31 @@ -# $FreeBSD: www/en/news/status/Makefile,v 1.9 2001/10/29 10:14:32 murray Exp $ +# $FreeBSD: www/en/news/status/Makefile,v 1.10 2001/11/12 22:25:12 chris Exp $ .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif .SUFFIXES: .xml .html DOCS= status.sgml DATA= report-june-2001.html DATA+= report-july-2001.html DATA+= report-august-2001.html DATA+= report-september-2001.html # Install a sample entry. DATA+= report-sample.xml CLEANFILES+= ${DATA:M*.html} .xml.html: report.xsl includes.xsl - ${XSLTPROC} ${XSLTPROCFLAGS} -o ${.TARGET} \ + ${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \ ${.CURDIR}/report.xsl ${.IMPSRC} - -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} INDEXLINK= status.html .include "${WEB_PREFIX}/share/mk/web.site.mk" diff --git a/es/Makefile b/es/Makefile index 3c3e87064d..1302402182 100644 --- a/es/Makefile +++ b/es/Makefile @@ -1,74 +1,74 @@ -# $FreeBSD: www/es/Makefile,v 1.10 2001/06/30 20:27:52 jesusr Exp $ +# $FreeBSD: www/es/Makefile,v 1.11 2001/06/30 20:31:48 jesusr Exp $ .if exists(Makefile.conf) .include "Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif # These are turned into validated, normalized HTML files. DOCS= applications.sgml DOCS+= auditors.sgml DOCS+= availability.sgml DOCS+= docs.sgml DOCS+= features.sgml DOCS+= register.sgml DOCS+= index.sgml DOCS+= internet.sgml DOCS+= mailto.sgml DOCS+= publish.sgml DOCS+= send-pr.sgml DOCS+= support.sgml DOCS+= where.sgml DOCS+= y2kbug.sgml CLEANFILES+=atoz.sgml site.sgml # These will be directly installed. #DATA= COPYING COPYING.LIB README.mirror robots.txt index.html DATA= robots.txt index.html # Subdirectories # SGML SUBDIR= security #SUBDIR+= commercial SUBDIR+= docproj SUBDIR+= news SUBDIR+= alpha SUBDIR+= internal SUBDIR+= copyright SUBDIR+= search #SUBDIR+= gallery SUBDIR+= projects SUBDIR+= releases #SUBDIR+= doc-es .if !defined(WEB_ONLY) || empty(WEB_ONLY) SUBDIR+= ports .endif # Non-SGML #SUBDIR+= gifs #SUBDIR+= cgi # Non-English #.if !defined(ENGLISH_ONLY) || empty(ENGLISH_ONLY) #SUBDIR+= ja #SUBDIR+= es #.endif .if !defined(WEB_ONLY) || empty(WEB_ONLY) # Extern #SUBDIR+= tutorials #DOCSUBDIR= FAQ handbook DOCSUBDIR= FAQ .endif -SGMLOPTS+= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr +SGMLFLAGS+= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr WEBDIR= data/es .include "${WEB_PREFIX}/share/mk/web.site.mk" diff --git a/es/ports/Makefile b/es/ports/Makefile index c009a4e630..8ac652d75e 100644 --- a/es/ports/Makefile +++ b/es/ports/Makefile @@ -1,48 +1,48 @@ -# $FreeBSD: www/en/ports/Makefile,v 1.33 2001/06/14 03:09:56 dd Exp $ +# $FreeBSD: www/es/ports/Makefile,v 1.10 2001/12/06 12:28:23 phantom Exp $ .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif .if exists(Makefile.inc) .include "Makefile.inc" .endif .if defined(NOPORTSCVS) ${INDEX}: $${PORTSBASE}/${PINDEX} cp ${PORTSBASE}/${PINDEX} ${INDEX} .else ${INDEX}: cvs -QR co -p ${PINDEX} > ${INDEX} .endif # build the list of available packages only on the # main FreeBSD machines hostname!= hostname packages.exists: .if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org" .if exists(${.CURDIR}/../../en/ports/packages.exists) cp ${.CURDIR}/../../en/ports/${.TARGET} . .else sh ${.CURDIR}/packages > ${.TARGET} .endif .else touch ${.TARGET} .endif Makefile.gen: index.sgml .NOTMAIN echo DOCS= *.sgml > Makefile.gen index.sgml: ${INDEX} packages.exists portindex ports.inc .NOTMAIN rm -f *.sgml ${PORTINDEX} ${INDEX} ${.CURDIR} install: all all install clean: - (cd ${.CURDIR} &&${MAKE} ${MAKEFLAGS} -f ${.CURDIR}/Makefile.inc0 ${.TARGET}) + (cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} -f ${.CURDIR}/Makefile.inc0 ${.TARGET}) .include "${WEB_PREFIX}/share/mk/web.site.mk" diff --git a/ja/Makefile b/ja/Makefile index a078f16dd1..e60158607f 100644 --- a/ja/Makefile +++ b/ja/Makefile @@ -1,91 +1,91 @@ -# $FreeBSD: www/ja/Makefile,v 1.52 2001/10/30 15:09:52 hrs Exp $ +# $FreeBSD: www/ja/Makefile,v 1.53 2001/11/17 17:21:09 hrs Exp $ # The FreeBSD Japanese Documentation Project # Original revision: 1.75 .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif # These are turned into validated, normalized HTML files. DOCS= applications.sgml DOCS+= auditors.sgml DOCS+= availability.sgml DOCS+= docs.sgml DOCS+= features.sgml DOCS+= register.sgml DOCS+= internet.sgml DOCS+= mailto.sgml DOCS+= publish.sgml #DOCS+= relnotes.sgml DOCS+= send-pr.sgml DOCS+= support.sgml DOCS+= where.sgml DOCS+= y2kbug.sgml # Japanese-only file DOCS+= jabout.sgml # These will be directly installed. #DATA= favicon.ico #DATA+= robots.txt # Subdirectories # SGML SUBDIR= security SUBDIR+= commercial SUBDIR+= docproj SUBDIR+= news SUBDIR+= internal SUBDIR+= java SUBDIR+= copyright SUBDIR+= search SUBDIR+= gallery SUBDIR+= projects #SUBDIR+= prstats SUBDIR+= platforms SUBDIR+= releases SUBDIR+= smp SUBDIR+= conspectus .if !defined(WEB_ONLY) || empty(WEB_ONLY) SUBDIR+= ports # SUBDIR+= doc # .endif # .if defined(BUILD_RELNOTES) # SUBDIR+= relnotes # .endif # # # These *must* be listed after the "doc" subdir, as they create symlinks # # in to it. # .if !defined(WEB_ONLY) || empty(WEB_ONLY) SUBDIR+= tutorials DOCSUBDIR= FAQ handbook .endif # Non-SGML #SUBDIR+= gifs #SUBDIR+= cgi -SGMLOPTS= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr -e EUC-JP +SGMLFLAGS= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr -e EUC-JP WEBDIR= data/ja # index.html is special, and generated from index.xsl and news/news.xml DATA+= index.html CLEANFILES+= index.html index.html: index.xsl news/news.xml news/press.xml includes.xsl news/includes.xsl - ${XSLTPROC} ${XSLTPROCFLAGS} -o index.html \ + ${XSLTPROC} ${XSLTPROCOPTS} -o index.html \ ${.CURDIR}/index.xsl ${.CURDIR}/news/news.xml -# -${TIDY} ${TIDYFLAGS} index.html + -${TIDY} ${TIDYOPTS} index.html ### Revision checking REVCHECK= yes .include "${WEB_PREFIX}/share/mk/web.site.mk" diff --git a/ja/gallery/Makefile b/ja/gallery/Makefile index 2688c942af..8f3085b2aa 100644 --- a/ja/gallery/Makefile +++ b/ja/gallery/Makefile @@ -1,46 +1,46 @@ -# $FreeBSD: www/ja/gallery/Makefile,v 1.15 2001/09/17 03:07:39 kuriyama Exp $ +# $FreeBSD: www/ja/gallery/Makefile,v 1.16 2001/11/18 22:33:58 hrs Exp $ # The FreeBSD Japanese Documentation Project # Original revision: 1.14 .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif XSLTPROCFLAGS= --catalogs XSLT= ${SETENV} SGML_CATALOG_FILES=${PREFIX}/share/xml/dtd/xhtml/xhtml.soc \ ${XSLTPROC} ${XSLTPROCFLAGS} SRC= ../../en/gallery/gallery.xml INDEXLINK= gallery.html DATA+= gallery.html cgallery.html npgallery.html pgallery.html CLEANFILES+= ${DATA} gallery.html: ${SRC} gallery.xsl ../includes.xsl ${XSLT} ${.CURDIR}/gallery.xsl ${.CURDIR}/${SRC} > ${.TARGET} -# -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} cgallery.html: ${SRC} gallery-entry.xsl ${XSLT} --param type \'commercial\' \ ${.CURDIR}/gallery-entry.xsl ${.CURDIR}/${SRC} > ${.TARGET} -# -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} npgallery.html: ${SRC} gallery-entry.xsl ${XSLT} --param type \'nonprofit\' \ ${.CURDIR}/gallery-entry.xsl ${.CURDIR}/${SRC} > ${.TARGET} -# -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} pgallery.html: ${SRC} gallery-entry.xsl ${XSLT} --param type \'personal\' \ ${.CURDIR}/gallery-entry.xsl ${.CURDIR}/${SRC} > ${.TARGET} -# -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} ### Revision checking REVCHECK= yes .include "${WEB_PREFIX}/share/mk/web.site.mk" diff --git a/ja/news/Makefile b/ja/news/Makefile index 2c772749c8..2f64546c20 100644 --- a/ja/news/Makefile +++ b/ja/news/Makefile @@ -1,57 +1,57 @@ -# $FreeBSD: www/ja/news/Makefile,v 1.29 2001/09/05 15:32:56 kuriyama Exp $ +# $FreeBSD: www/ja/news/Makefile,v 1.30 2001/11/19 15:35:42 hrs Exp $ # The FreeBSD Japanese Documentation Project # Original revision: 1.30 .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif #DOCS= press.sgml DOCS+= news.sgml #DOCS+= webchanges.sgml # press releases DOCS+= pressreleases.sgml DOCS+= press-rel-1.sgml DOCS+= press-rel-2.sgml DOCS+= press-rel-3.sgml DOCS+= press-rel-4.sgml DOCS+= press-rel-5.sgml # The yearly State of the Union address #DOCS+= sou1999.sgml INDEXLINK= news.html SUBDIR= 1996 SUBDIR+= 1997 #SUBDIR+= 1998 #SUBDIR+= 1999 #SUBDIR+= 2000 #SUBDIR+= status DATA= newsflash.html press.html #+= news.rdf CLEANFILES+= newsflash.html press.html newsflash.html: newsflash.xsl news.xml includes.xsl ../includes.xsl ${XSLTPROC} ${XSLTPROCFLAGS} -o ${.TARGET} \ ${.CURDIR}/newsflash.xsl ${.CURDIR}/news.xml -# -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} news.rdf: news-rdf.xsl news.xml includes.xsl ../includes.xsl ${XSLTPROC} ${XSLTPROCFLAGS} -o ${.TARGET} \ ${.CURDIR}/news-rdf.xsl ${.CURDIR}/news.xml press.html: press.xsl press.xml includes.xsl ../includes.xsl ${XSLTPROC} ${XSLTPROCFLAGS} -o ${.TARGET} \ ${.CURDIR}/press.xsl ${.CURDIR}/press.xml -# -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} ### Revision checking REVCHECK= YES .include "${WEB_PREFIX}/share/mk/web.site.mk" diff --git a/ru/Makefile b/ru/Makefile index bd8b485556..571e2da668 100644 --- a/ru/Makefile +++ b/ru/Makefile @@ -1,78 +1,78 @@ -# $FreeBSD: www/ru/Makefile,v 1.16 2000/12/29 13:37:57 phantom Exp $ +# $FreeBSD: www/ru/Makefile,v 1.17 2001/08/08 02:08:09 kuriyama Exp $ # The FreeBSD Russian Documentation Project # $FreeBSDru: frdp/www/ru/Makefile,v 1.9 2000/12/29 13:17:32 phantom Exp $ # Original revision: 1.55 .if exists(Makefile.conf) .include "Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif # These are turned into validated, normalized HTML files. DOCS= applications.sgml DOCS+= auditors.sgml DOCS+= availability.sgml DOCS+= docs.sgml DOCS+= features.sgml DOCS+= register.sgml DOCS+= index.sgml DOCS+= internet.sgml DOCS+= mailto.sgml DOCS+= publish.sgml DOCS+= send-pr.sgml DOCS+= support.sgml DOCS+= where.sgml DOCS+= y2kbug.sgml CLEANFILES+=atoz.sgml site.sgml # These will be directly installed. #DATA= COPYING COPYING.LIB README.mirror robots.txt index.html DATA= index.html # Subdirectories # SGML SUBDIR= security SUBDIR+= commercial SUBDIR+= conspectus SUBDIR+= docproj SUBDIR+= news SUBDIR+= alpha SUBDIR+= internal SUBDIR+= java SUBDIR+= copyright SUBDIR+= search #SUBDIR+= gallery SUBDIR+= projects SUBDIR+= releases SUBDIR+= smp SUBDIR+= platforms .if !defined(WEB_ONLY) || empty(WEB_ONLY) SUBDIR+= ports .endif # Non-SGML #SUBDIR+= gifs #SUBDIR+= cgi .if !defined(WEB_ONLY) || empty(WEB_ONLY) # Extern SUBDIR+= tutorials SUBDIR+= handbook #DOCSUBDIR= FAQ handbook DOCSUBDIR= FAQ .endif -SGMLOPTS+= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr -SGMLOPTS+= -e KOI8-R +SGMLFLAGS+= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr +SGMLFLAGS+= -e KOI8-R FORMATS= "html ps koi8-r" WEBDIR?= data/ru .include "${WEB_PREFIX}/share/mk/web.site.mk" diff --git a/share/mk/web.site.mk b/share/mk/web.site.mk index 0e11ab5179..ade1c5809c 100644 --- a/share/mk/web.site.mk +++ b/share/mk/web.site.mk @@ -1,281 +1,277 @@ # bsd.web.mk -# $FreeBSD: www/share/mk/web.site.mk,v 1.39 2001/10/30 16:51:34 hrs Exp $ +# $FreeBSD: www/share/mk/web.site.mk,v 1.40 2001/11/12 19:17:39 phantom Exp $ # # Build and install a web site. # # Basic targets: # # all (default) -- performs batch mode processing necessary # install -- Installs everything # clean -- remove anything generated by processing # .if exists(${.CURDIR}/../Makefile.inc) .include "${.CURDIR}/../Makefile.inc" .endif -# XXX: translations are not ready! -NO_TIDY= YES - WEBDIR?= ${.CURDIR:T} CGIDIR?= ${.CURDIR:T} DESTDIR?= ${HOME}/public_html WEBOWN?= ${USER} WEBGRP?= www WEBMODE?= 664 CGIOWN?= ${USER} CGIGRP?= www CGIMODE?= 775 CP?= /bin/cp CVS?= /usr/bin/cvs ECHO_CMD?= echo SETENV?= /usr/bin/env LN?= /bin/ln MKDIR?= /bin/mkdir MV?= /bin/mv PERL?= /usr/bin/perl5 RM?= /bin/rm SED?= /usr/bin/sed SH?= /bin/sh SORT?= /usr/bin/sort TOUCH?= /usr/bin/touch XSLTPROC?= ${PREFIX}/bin/xsltproc -XSLTPROCFLAGS?= -nonet +XSLTPROCOPTS?= -nonet ${XSLTPROCFLAGS} TIDY?= ${PREFIX}/bin/tidy -TIDYFLAGS?= -i -m -f /dev/null +TIDYOPTS?= -i -m -raw -preserve -f /dev/null ${TIDYFLAGS} # # Install dirs derived from the above. # DOCINSTALLDIR= ${DESTDIR}${WEBBASE}/${WEBDIR} CGIINSTALLDIR= ${DESTDIR}${WEBBASE}/${CGIDIR} # # The orphan list contains sources specified in DOCS that there # is no transform rule for. We start out with all of them, and # each rule below removes the ones it knows about. If any are # left over at the end, the user is warned about them. # ORPHANS:= ${DOCS} COPY= -C # # Where the ports live, if CVS isn't used (ie. NOPORTSCVS is defined) # PORTSBASE?= /usr ################################################################## # Transformation rules ### # file.sgml --> file.html # # Runs file.sgml through spam to validate and expand some entity # references are expanded. file.html is added to the list of # things to install. .SUFFIXES: .sgml .html .if defined(REVCHECK) -PREHTML= ${WEB_PREFIX}/ja/prehtml -PREHTMLFLAGS= ${PREHTMLOPTS} +PREHTML?= ${WEB_PREFIX}/ja/prehtml CANONPREFIX0!= cd ${WEB_PREFIX}; ${ECHO_CMD} $${PWD}; CANONPREFIX= ${PWD:S/^${CANONPREFIX0}//:S/^\///} LOCALTOP!= ${ECHO_CMD} ${CANONPREFIX} | \ ${PERL} -pe 's@[^/]+@..@g; $$_.="/." if($$_ eq".."); s@^\.\./@@;' DIR_IN_LOCAL!= ${ECHO_CMD} ${CANONPREFIX} | ${PERL} -pe 's@^[^/]+/?@@;' -PREHTMLFLAGS+= -revcheck "${LOCALTOP}" "${DIR_IN_LOCAL}" +PREHTMLOPTS?= -revcheck "${LOCALTOP}" "${DIR_IN_LOCAL}" ${PREHTMLFLAGS} .else -DATESUBST= 's///' -PREHTML= ${SED} -e ${DATESUBST} +DATESUBST?= 's///' +PREHTML?= ${SED} -e ${DATESUBST} .endif .if !defined(OPENJADE) -SGMLNORM= ${PREFIX}/bin/sgmlnorm +SGMLNORM?= ${PREFIX}/bin/sgmlnorm .else -SGMLNORM= ${PREFIX}/bin/osgmlnorm +SGMLNORM?= ${PREFIX}/bin/osgmlnorm .endif LOCALBASE?= /usr/local PREFIX?= ${LOCALBASE} CATALOG?= ${PREFIX}/share/sgml/html/catalog -SGMLNORMFLAGS= -d ${SGMLNORMOPTS} -c ${CATALOG} -D ${.CURDIR} +SGMLNORMOPTS?= -d ${SGMLNORMFLAGS} -c ${CATALOG} -D ${.CURDIR} GENDOCS+= ${DOCS:M*.sgml:S/.sgml$/.html/g} ORPHANS:= ${ORPHANS:N*.sgml} .sgml.html: - ${PREHTML} ${PREHTMLFLAGS} ${.IMPSRC} | \ + ${PREHTML} ${PREHTMLOPTS} ${.IMPSRC} | \ ${SETENV} SGML_CATALOG_FILES= \ - ${SGMLNORM} ${SGMLNORMFLAGS} > ${.TARGET} || \ + ${SGMLNORM} ${SGMLNORMOPTS} > ${.TARGET} || \ (${RM} -f ${.TARGET} && false) .if !defined(NO_TIDY) - -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} .endif ### # file.docb --> file.html # # Generate HTML from docbook SGMLFMT?= ${PREFIX}/bin/sgmlfmt -SGMLFMTFLAGS?= -d docbook -f html ${SGMLOPTS} +SGMLFMTOPTS?= -d docbook -f html ${SGMLFMTFLAGS} ${SGMLFLAGS} .SUFFIXES: .docb GENDOCS+= ${DOCS:M*.docb:S/.docb$/.html/g} ORPHANS:= ${ORPHANS:N*.docb} .docb.html: - ${SGMLFMT} ${SGMLFMTFLAGS} ${.IMPSRC} + ${SGMLFMT} ${SGMLFMTOPTS} ${.IMPSRC} .if !defined(NO_TIDY) - -${TIDY} ${TIDYFLAGS} ${.TARGET} + -${TIDY} ${TIDYOPTS} ${.TARGET} .endif ################################################################## # Targets # # If no target is specified, .MAIN is made # .MAIN: all # # Build most everything # all: ${COOKIE} orphans ${GENDOCS} ${DATA} ${LOCAL} ${CGI} _PROGSUBDIR # # Warn about anything in DOCS that has no translation # .if !empty(ORPHANS) orphans: @${ECHO} Warning! I don\'t know what to do with: ${ORPHANS} .else orphans: .endif # # Clean things up # .if !target(clean) clean: _PROGSUBDIR .if defined(DIRS_TO_CLEAN) && !empty(DIRS_TO_CLEAN) .for dir in ${DIRS_TO_CLEAN} cd ${.CURDIR}/${dir}; ${MAKE} clean .endfor .endif ${RM} -f Errs errs mklog ${GENDOCS} ${LOCAL} ${CLEANFILES} .endif # # Really clean things up # .if !target(cleandir) cleandir: clean _PROGSUBDIR ${RM} -f ${.CURDIR}/tags .depend cd ${.CURDIR}; ${RM} -rf obj .endif # # Install targets: before, real, and after. # .if !target(install) .if !target(beforeinstall) beforeinstall: .endif .if !target(afterinstall) afterinstall: .endif INSTALL_WEB?= \ ${INSTALL} ${COPY} ${INSTALLFLAGS} -o ${WEBOWN} -g ${WEBGRP} -m ${WEBMODE} INSTALL_CGI?= \ ${INSTALL} ${COPY} ${INSTALLFLAGS} -o ${CGIOWN} -g ${CGIGRP} -m ${CGIMODE} _ALLINSTALL+= ${GENDOCS} ${DATA} ${LOCAL} realinstall: ${COOKIE} ${_ALLINSTALL} ${CGI} _PROGSUBDIR .if !empty(_ALLINSTALL) @${MKDIR} -p ${DOCINSTALLDIR} .for entry in ${_ALLINSTALL} .if exists(${.CURDIR}/${entry}) ${INSTALL_WEB} ${.CURDIR}/${entry} ${DOCINSTALLDIR} .else ${INSTALL_WEB} ${entry} ${DOCINSTALLDIR} .endif .endfor .if defined(INDEXLINK) && !empty(INDEXLINK) cd ${DOCINSTALLDIR}; ${LN} -fs ${INDEXLINK} index.html .endif .endif .if defined(CGI) && !empty(CGI) @${MKDIR} -p ${CGIINSTALLDIR} .for entry in ${CGI} ${INSTALL_CGI} ${.CURDIR}/${entry} ${CGIINSTALLDIR} .endfor .endif .if defined(DOCSUBDIR) && !empty(DOCSUBDIR) .for entry in ${DOCSUBDIR} @${MKDIR} -p ${DOCINSTALLDIR}/${entry} .endfor .endif # Set up install dependencies so they happen in the correct order. install: afterinstall afterinstall: realinstall2 realinstall: beforeinstall realinstall2: realinstall .endif # # This recursively calls make in subdirectories. # #SUBDIR+=${DOCSUBDIR} _PROGSUBDIR: .USE .if defined(SUBDIR) && !empty(SUBDIR) .for entry in ${SUBDIR} @${ECHODIR} "===> ${DIRPRFX}${entry}" @cd ${.CURDIR}/${entry}; \ ${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/} \ DIRPRFX=${DIRPRFX}${entry}/ .endfor .endif .if defined(DOCSUBDIR) && !empty(DOCSUBDIR) .for entry in ${DOCSUBDIR} @${ECHODIR} "===> ${DIRPRFX}${entry}" @if [ \( "${WEBDIR}" = "data" -a "${entry}" = "handbook" \) -o "${entry}" = "docproj-primer" ]; then \ cd ${.CURDIR}/${entry}; \ ${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/} \ DIRPRFX=${DIRPRFX}${entry}/ ${PARAMS} \ FORMATS="txt html html-split"; \ elif [ "${WEBDIR}" = "data/ja" -a "${entry}" = "handbook" ]; then \ cd ${.CURDIR}/${entry}; \ ${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/} \ DIRPRFX=${DIRPRFX}${entry}/ ${PARAMS} \ FORMATS="html html-split"; \ else \ cd ${.CURDIR}/${entry}; \ ${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/} \ DIRPRFX=${DIRPRFX}${entry}/ ${PARAMS}; \ fi .endfor .endif # # cruft for generating linuxdoc stuff # .if defined (DOCSUBDIR) && !empty(DOCSUBDIR) FORMATS?= "html ps latin1 ascii" PARAMS= DESTDIR=${DESTDIR} DOCDIR=${WEBBASE}/${WEBDIR} PARAMS+= DOCOWN=${WEBOWN} DOCGRP=${WEBGRP} PARAMS+= FORMATS=${FORMATS} COPY="${COPY}" PARAMS+= SGMLOPTS="${SGMLOPTS}" .endif .include # THE END diff --git a/zh/Makefile b/zh/Makefile index f2f4d6322c..41bf4745d3 100644 --- a/zh/Makefile +++ b/zh/Makefile @@ -1,20 +1,20 @@ -# $FreeBSD: www/zh/Makefile,v 1.4 2000/02/28 12:51:21 phantom Exp $ +# $FreeBSD: www/zh/Makefile,v 1.5 2000/11/07 05:20:40 kuriyama Exp $ .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif .if !defined(WEB_ONLY) || empty(WEB_ONLY) DOCSUBDIR= FAQ .endif -SGMLOPTS= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr -SGMLOPTS+=-e big5 -FORMATS= "html ps" +SGMLFLAGS+= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr +SGMLFLAGS+= -e big5 +FORMATS= "html ps" WEBBASE= /data/zh .include "${WEB_PREFIX}/share/mk/web.site.mk"