1 SHELL = umask 002; exec /bin/sh
3 FILES = events.ics events.atom news.atom index.html stats.html \
4 favicon.ico default.css csclub.der csclub.pem robots.txt
5 SUBDIRS = about events office news services media buttons logos flash library
9 common.mk: common.mk.in
10 echo 'ROOT = '`pwd` > $@
13 build: noroot mkoutdir common.mk $(OUTPUTS) force
14 @for i in $(SUBDIRS) ; do cd $$i && ($(MAKE) || exit 1) && cd .. ; done
15 find ! -regex '.*/\..*' -type f ! -perm -0664 -print0 | xargs -r0 chmod u=rwX,g=rwX,o=rX || true
16 find ! -regex '.*/\..*' -type d ! -perm 2775 -print0 | xargs -r0 chmod 2775 || true
17 find ! -regex '.*/\..*' -type d ! -group www -print0 | xargs -r0 chgrp www || true
20 if test $$(id -u) = 0; then echo "don't build as root!"; exit 1; fi
22 $(OUTDIR)index.html: events.xml news.xml