make the Makefile a bit more friendly to forieng configurations...

put your own local configuration information in Makefile.conf...
currently supports ACCESS_LOG_{DIR,FILE} and ANALOG...

it will default to freefall's defaults when no Makefile.conf exists...

Approved by: jfieber
This commit is contained in:
John-Mark Gurney 1997-04-24 23:03:54 +00:00
parent abd306bd02
commit 21b7427a87
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=1439
2 changed files with 34 additions and 14 deletions

View file

@ -1,4 +1,12 @@
# $Id: Makefile,v 1.14 1997-04-23 19:52:40 jfieber Exp $
# $Id: Makefile,v 1.15 1997-04-24 23:03:54 jmg 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.
@ -17,16 +25,18 @@ DATA= COPYING COPYING.LIB README.mirror robots.txt
LOCAL= stats.html stats-img.html
stats.html: /home/www/server/logs/access_log
stats.html: ${ACCESS_LOG_DIR}/${ACCESS_LOG_FILE}
renice +10 $$$$; \
(cd /home/www/server/logs;zcat access_log.*.gz;cat access_log) | \
(cd ${ACCESS_LOG_DIR};zcat ${ACCESS_LOG_FILE}.*.gz; \
cat ${ACCESS_LOG_FILE}) | \
egrep -iv '\.(gif|jpg|jpeg|au) ' | \
/home/www/bin/analog +i0 +R500 -o > ${.TARGET}
${ANALOG} +i0 +R500 -o > ${.TARGET}
stats-img.html: /home/www/server/logs/access_log
stats-img.html: ${ACCESS_LOG_DIR}/${ACCESS_LOG_FILE}
renice +10 $$$$; \
(cd /home/www/server/logs;zcat access_log.*.gz;cat access_log) | \
/home/www/bin/analog +i0 +R500 -o > ${.TARGET}
(cd ${ACCESS_LOG_DIR};zcat ${ACCESS_LOG_FILE}.*.gz; \
cat ${ACCESS_LOG_FILE}) | \
${ANALOG} +i0 +R500 -o > ${.TARGET}
# Subdirectories

View file

@ -1,4 +1,12 @@
# $Id: Makefile,v 1.14 1997-04-23 19:52:40 jfieber Exp $
# $Id: Makefile,v 1.15 1997-04-24 23:03:54 jmg 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.
@ -17,16 +25,18 @@ DATA= COPYING COPYING.LIB README.mirror robots.txt
LOCAL= stats.html stats-img.html
stats.html: /home/www/server/logs/access_log
stats.html: ${ACCESS_LOG_DIR}/${ACCESS_LOG_FILE}
renice +10 $$$$; \
(cd /home/www/server/logs;zcat access_log.*.gz;cat access_log) | \
(cd ${ACCESS_LOG_DIR};zcat ${ACCESS_LOG_FILE}.*.gz; \
cat ${ACCESS_LOG_FILE}) | \
egrep -iv '\.(gif|jpg|jpeg|au) ' | \
/home/www/bin/analog +i0 +R500 -o > ${.TARGET}
${ANALOG} +i0 +R500 -o > ${.TARGET}
stats-img.html: /home/www/server/logs/access_log
stats-img.html: ${ACCESS_LOG_DIR}/${ACCESS_LOG_FILE}
renice +10 $$$$; \
(cd /home/www/server/logs;zcat access_log.*.gz;cat access_log) | \
/home/www/bin/analog +i0 +R500 -o > ${.TARGET}
(cd ${ACCESS_LOG_DIR};zcat ${ACCESS_LOG_FILE}.*.gz; \
cat ${ACCESS_LOG_FILE}) | \
${ANALOG} +i0 +R500 -o > ${.TARGET}
# Subdirectories