Date: Tue, 20 Jan 1998 00:37:24 +0900 From: Motoyuki Konno <motoyuki@snipe.rim.or.jp> To: freebsd-www@FreeBSD.ORG Cc: motoyuki@snipe.rim.or.jp Subject: Build the WWW Message-ID: <199801191537.AAA03422@eddie.snipe.rim.or.jp>
next in thread | raw e-mail | index | archive | help
Hi, I wrote a Makefile to build the FreeBSD WWW. Please send me your comments or suggestions. --- motoyuki @ FreeBSD Japanese Documentation Project ======== Makefile ====================================================== ######################################################################## # Makefile to build the WWW # Created by motoyuki@jp.FreeBSD.ORG # # How to build the WWW # # 1. Install the following ports/packages into your FreeBSD machine. # textproc/sgmlformat, textproc/jade, textproc/html, # textproc/linuxdoc, textproc/docbook, # net/cvsup (in case you want to update the source by cvsup) # # 2. Configure the "USER CONFIGURATION" section of this Makefile. # 3. Simply run "make", and "make install" # ######################################################################## # USER CONFIGURATION # # USE_CVSUP Uncomment if you want to update the sources by cvsup. # NO_LOCAL Uncomment if you do not want to make the "LOCAL" file of # the WWW (stats.html, stats-img.html). # HTML_ONLY Uncomment if you want to make the html formats only. # SUPFILE Filename of the cvsup supfile. # CVSROOT CVSROOT directory of the FreeBSD CVS repository. # # DESTDIR Directory you want to install the WWW files. # # WEBOWN Owner of the WWW files. # WEBGRP Group of the WWW files. # CGIOWN Owner of the CGI files. # CGIGRP Group of the CGI files. USE_CVSUP= true NO_LOCAL= true HTML_ONLY= true SUPFILE= www-supfile CVSROOT= /home/ncvs DESTDIR= /home/motoyuki/www WEBOWN= motoyuki WEBGRP= staff CGIOWN= motoyuki CGIGRP= staff ######################################################################## # SYSTEM CONFIGURATION DOCS= FAQ handbook ja_JP.EUC/FAQ ja_JP.EUC/handbook LANGSUBDIR= ja_JP.EUC LINKFILES= Makefile.inc doc.hdr doc.ftr ######################################################################## # Nothing needed be changed below here FLAGS= CVSDIR= .ifdef NO_LOCAL FLAGS+= LOCAL= .endif .ifdef HTML_ONLY FLAGS+= FORMATS=html .endif INSTFLAGS= DESTDIR=${DESTDIR} INSTFLAGS+= WEBOWN=${WEBOWN} WEBGRP=${WEBGRP} INSTFLAGS+= CGIOWN=${CGIOWN} CGIGRP=${CGIGRP} all: checkout symlinks build checkout: .if defined(USE_CVSUP) cvsup -g -L 2 ${SUPFILE} .else if [ -d CVS ]; then \ cvs -d ${CVSROOT} update -Pd doc www; \ cvs -d ${CVSROOT} update ports/INDEX; \ else \ cvs -d ${CVSROOT} checkout -P doc www; \ cvs -d ${CVSROOT} checkout ports/INDEX; \ fi .endif symlinks: ln -sf ${.CURDIR}/ports ${.CURDIR}/www/data/ports/ports ln -sf ${.CURDIR}/ports ${.CURDIR}/www/data/ja_JP.EUC/ports touch ${.CURDIR}/www/data/ports/index touch ${.CURDIR}/www/data/ja_JP.EUC/ports/index .for i in ${DOCS} ln -sf ${.CURDIR}/doc/$i ${.CURDIR}/www/data/$i .endfor .for i in ${LINKFILES} ln -sf ${.CURDIR}/www/data/$i ${.CURDIR}/doc/$i .for j in ${LANGSUBDIR} ln -sf ${.CURDIR}/www/data/$j/$i ${.CURDIR}/doc/$j/$i .endfor .endfor build: cd www/data; ${MAKE} ${FLAGS} clean: cd www/data; ${MAKE} ${FLAGS} clean install: cd www/data; ${MAKE} ${FLAGS} ${INSTFLAGS} install ======== www-supfile =================================================== # Sample supfile *default host=cvsup.jp.freebsd.org *default base=. *default prefix=. *default release=cvs tag=. *default delete use-rel-suffix *default preserve ports-base doc-all www ======================================================================== --- ------------------------------------------------------------------------ Motoyuki Konno mkonno@res.yamanashi-med.ac.jp (Univ) motoyuki@snipe.rim.or.jp (Home) motoyuki@jp.FreeBSD.ORG (FreeBSD) Yamanashi Medical University http://www.jp.FreeBSD.ORG/~motoyuki/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801191537.AAA03422>