Yay, memberlist.
[www/www.git] / Makefile
1 INPUTS = index.xml
2 SUBDIRS = about events docs office
3
4 # the following two rules are there so cow gets built first.
5 cow-first: recurse-cow members.xml all
6
7 recurse-cow:
8         cd cow && $(MAKE) && cd ..
9
10 members.xml:
11         echo '<?xml version='\''1.0'\''?>' > $@
12         echo '<memberlist>' >> $@
13         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 "\" />"; }' >> $@
14         echo '</memberlist>' >> $@
15
16 include default.mk
17
18 default.mk: default.mk.in
19         echo 'ROOT = '`pwd` > $@
20         cat $< >> $@
21
22 .PHONY: members.xml