Fix Makefile so that members.xml always gets regenerated

foo
David Bartley 15 years ago
parent 6c924aa81b
commit de19547904
  1. 2
      Makefile
  2. 1
      about/Makefile
  3. 6
      common.mk.in

@ -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

@ -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'\''?>' > $@

@ -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)/*

Loading…
Cancel
Save