2007-10-30 12:18:10 -04:00
|
|
|
SHELL = umask 002; exec /bin/sh
|
|
|
|
|
2007-12-04 22:54:37 -05:00
|
|
|
FILES = events.ics events.atom news.atom index.html stats.html \
|
2008-03-27 23:01:54 -04:00
|
|
|
favicon.ico default.css csclub.der csclub.pem
|
2009-03-10 23:41:16 -04:00
|
|
|
SUBDIRS = about events office news services media buttons logos flash library
|
2007-10-06 17:23:47 -04:00
|
|
|
|
2007-10-05 21:55:10 -04:00
|
|
|
include common.mk
|
2002-03-11 15:39:54 -05:00
|
|
|
|
2007-10-06 17:23:47 -04:00
|
|
|
common.mk: common.mk.in
|
|
|
|
echo 'ROOT = '`pwd` > $@
|
|
|
|
cat $< >> $@
|
|
|
|
|
2007-11-14 22:55:12 -05:00
|
|
|
build: noroot mkoutdir common.mk $(OUTPUTS) force
|
2007-10-09 21:19:36 -04:00
|
|
|
@for i in $(SUBDIRS) ; do cd $$i && ($(MAKE) || exit 1) && cd .. ; done
|
2007-06-30 19:06:12 -04:00
|
|
|
find ! -regex '.*/\..*' -type f ! -perm -0664 -print0 | xargs -r0 chmod u=rwX,g=rwX,o=rX || true
|
|
|
|
find ! -regex '.*/\..*' -type d ! -perm 2775 -print0 | xargs -r0 chmod 2775 || true
|
|
|
|
find ! -regex '.*/\..*' -type d ! -group www -print0 | xargs -r0 chgrp www || true
|
2007-06-30 18:26:17 -04:00
|
|
|
|
|
|
|
noroot:
|
2007-12-16 18:24:34 -05:00
|
|
|
if test $$(id -u) = 0; then echo "don't build as root!"; exit 1; fi
|
2002-04-15 17:20:33 -04:00
|
|
|
|
2007-10-09 00:02:29 -04:00
|
|
|
$(OUTDIR)index.html: events.xml news.xml
|