ifeq ($(shell uname -n),slowhand.douglasthrift.net) SHELL :=$(shell which bash) .PHONY: all stats clean all: awstats.pl awstats.cscl.creativestudies.org.conf css/awstats_default.css \ icon lang lib plugins [[ `stat -f %Sg data` == www ]] || sudo chgrp www data && chmod g+w data awstats.pl: /usr/local/www/awstats/cgi-bin/awstats.pl awstats.pl.patch cp -fpv $< $@ patch < $@.patch rm -f $@.orig awstats.cscl.creativestudies.org.conf: \ /usr/local/www/awstats/cgi-bin/awstats.model.conf vimdiff $@ $< css/awstats_default.css: /usr/local/www/awstats/css/awstats_default.css -mkdir $(@D) sed -e "s|/awstatsicons|../icon|" <$< >$@ icon: ln -sf /usr/local/www/awstats/icons $@ js/awstats_misc_tracker.js: /usr/local/www/awstats/js/awstats_misc_tracker.js sed -e 's|/js/|/awstats&|' <$< >$@ lang: ln -sf /usr/local/www/awstats/cgi-bin/$@ . lib: ln -sf /usr/local/www/awstats/cgi-bin/$@ . plugins: ln -sf /usr/local/www/awstats/cgi-bin/$@ . stats: ./awstats.pl -config=cscl.creativestudies.org echo -e "\nhttp://cscl.creativestudies.org/awstats/\n" clean: -rm -rf awstats.pl css icon lang lib plugins endif