old-website/Makefile

23 lines
693 B
Makefile
Raw Normal View History

2002-03-11 15:39:54 -05:00
INPUTS = index.xml
2002-04-14 18:38:07 -04:00
SUBDIRS = about events docs office
2002-03-11 15:39:54 -05:00
# the following two rules are there so cow gets built first.
2002-04-15 18:31:30 -04:00
cow-first: recurse-cow members.xml all
recurse-cow:
cd cow && $(MAKE) && cd ..
2002-04-15 18:31:30 -04:00
members.xml:
echo '<?xml version='\''1.0'\''?>' > $@
echo '<memberlist>' >> $@
ceoquery memberlist | awk -F \| '{ id = $$1; name = $$2; program = $$3; gsub(/"/, "\\&quot;", name); gsub(/"/, "\\&quot;", program); gsub(/&/, "\\&amp;", name); gsub(/&/, "\\&amp;", program); print "<member id=\"" id "\" name=\"" name "\" program=\"" program "\" />"; }' >> $@
echo '</memberlist>' >> $@
2002-03-11 15:39:54 -05:00
include default.mk
default.mk: default.mk.in
echo 'ROOT = '`pwd` > $@
cat $< >> $@
2002-04-15 18:31:30 -04:00
.PHONY: members.xml