clean up the build process a wee bit. The basic change: instead of cheacking out bits and pieces of the doc tree into the web build tree, check out the doc tree somewhere else and put in a few symlinks from the web tree to the doc tree. On catfish (soon to be hub) for example: /usr/local/www/build/doc/... /usr/local/www/build/www/... where /usr/local/www/build/www/data/handbook -> ../../doc/handbook You have to manually put in the symlinks at the moment, but it works better than the evil CVS hackery. Also, install with -C to help avoid gratuitous cache-busting due to gratuitous timestamp twiddling.
		
			
				
	
	
		
			60 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # $Id: Makefile,v 1.20 1998-01-18 22:27:30 jfieber Exp $
 | |
| 
 | |
| .if exists(Makefile.conf)
 | |
| .include "Makefile.conf"
 | |
| .endif
 | |
| 
 | |
| ACCESS_LOG_DIR?=/home/www/server/logs
 | |
| ACCESS_LOG_FILE?=access_log
 | |
| ANALOG?=/home/www/bin/analog
 | |
| 
 | |
| # These are turned into validated, normalized HTML files.
 | |
| 
 | |
| DOCS=  about.sgml applications.sgml auditors.sgml availability.sgml branch.sgml
 | |
| DOCS+= cgallery.sgml commercial.sgml daemon.sgml docproj.sgml docs.sgml 
 | |
| DOCS+= features.sgml gallery.sgml index-site.sgml register.sgml 
 | |
| DOCS+= internet.sgml license.sgml mailto.sgml mirror.sgml newsflash.sgml
 | |
| DOCS+= npgallery.sgml pgallery.sgml publish.sgml search.sgml searchhints.sgml
 | |
| DOCS+= send-pr.sgml security.sgml support.sgml where.sgml resignation.sgml
 | |
| 
 | |
| CLEANFILES+=atoz.sgml
 | |
| 
 | |
| # These will be directly installed.
 | |
| 
 | |
| DATA=	COPYING COPYING.LIB README.mirror robots.txt index.html
 | |
| 
 | |
| # Files or targets listed here are defined in this file.
 | |
| 
 | |
| #LOCAL=	stats.html stats-img.html
 | |
| 
 | |
| stats.html: ${ACCESS_LOG_DIR}/${ACCESS_LOG_FILE}
 | |
| 	renice +10 $$$$; \
 | |
| 	(cd ${ACCESS_LOG_DIR};zcat ${ACCESS_LOG_FILE}.*.gz; \
 | |
| 	    cat ${ACCESS_LOG_FILE}) | \
 | |
| 	egrep -iv '\.(gif|jpg|jpeg|au) ' | \
 | |
| 	${ANALOG} +i0 +R500 -o > ${.TARGET}
 | |
| 
 | |
| stats-img.html: ${ACCESS_LOG_DIR}/${ACCESS_LOG_FILE}
 | |
| 	renice +10 $$$$; \
 | |
| 	(cd ${ACCESS_LOG_DIR};zcat ${ACCESS_LOG_FILE}.*.gz; \
 | |
| 	    cat ${ACCESS_LOG_FILE}) | \
 | |
| 	${ANALOG} +i0 +R500 -o > ${.TARGET}
 | |
| 
 | |
| index-site.sgml: atoz.sgml
 | |
| atoz.sgml: web.atoz 
 | |
| 	sort -fu web.atoz | perl atoz.pl > ${.TARGET}
 | |
| 
 | |
| # Subdirectories
 | |
| 
 | |
| SUBDIR=		cgi commercial gifs ports releases tutorials ja_JP.EUC
 | |
| 
 | |
| # Subdirectories that have linuxdoc docs and makefiles that use
 | |
| # <bsd.sgml.mk>.
 | |
| 
 | |
| DOCSUBDIR=	FAQ handbook
 | |
| SGMLOPTS+=      -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr
 | |
| 
 | |
| WEBDIR=		data
 | |
| 
 | |
| .include "web.mk"
 | |
| 
 |