Fix Makefile so that members.xml always gets regenerated

This commit is contained in:
David Bartley 2007-11-09 20:19:00 -05:00
parent 6c924aa81b
commit de19547904
3 changed files with 5 additions and 4 deletions

View File

@ -16,7 +16,7 @@ build: noroot mkoutdir common.mk $(OUTPUTS)
find ! -regex '.*/\..*' -type d ! -perm 2775 -print0 | xargs -r0 chmod 2775 || true
find ! -regex '.*/\..*' -type d ! -group www -print0 | xargs -r0 chgrp www || true
.PHONY += noroot
.PHONY: noroot
noroot:
if test $$UID = 0; then echo "don't build as root!"; exit 1; fi

View File

@ -6,6 +6,7 @@ include ../common.mk
$(OUTDIR)members.html: $(OUTDIR)members.xml
.PHONY: $(OUTDIR)members.xml
$(OUTDIR)members.xml:
test -e /usr/bin/ceoquery || (echo 'Erorr: ceoquery not found'; exit 1)
echo '<?xml version='\''1.0'\''?>' > $@

View File

@ -8,14 +8,14 @@ else
endif
OUTPUTS = $(addprefix $(OUTDIR),$(FILES))
.PHONY += mkoutdir
.PHONY: mkoutdir
mkoutdir:
mkdir -p $(OUTDIR)
.PHONY += build
.PHONY: build
build: $(OUTPUTS)
.PHONY += clean
.PHONY: clean
clean:
ifeq "$(ROOT)" "/users/www/www"
rm -rf $(OUTDIR)/*