old-website/Makefile

23 lines
806 B
Makefile
Raw Normal View History

SHELL = umask 002; exec /bin/sh
FILES = events.ics events.atom news.atom index.html \
favicon.ico default.css robots.txt csclub.der csclub.pem
SUBDIRS = about events office news services media buttons logos flash
include common.mk
2002-03-11 15:39:54 -05:00
common.mk: common.mk.in
echo 'ROOT = '`pwd` > $@
cat $< >> $@
build: noroot mkoutdir common.mk $(OUTPUTS) force
@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:
if test $$UID = 0; then echo "don't build as root!"; exit 1; fi
$(OUTDIR)index.html: events.xml news.xml