2 SUBDIRS = about events docs office news
4 # the following two rules are there so cow gets built first.
5 cow-first: recurse-cow books.xml members.xml all
8 cd cow && $(MAKE) && cd ..
11 echo '<?xml version='\''1.0'\''?>' > $@
12 echo '<memberlist>' >> $@
13 ceoquery memberlist | awk -F \| '{ id = $$1; name = $$2; program = $$3; gsub(/&/, "\\&", name); gsub(/&/, "\\&", program); gsub(/"/, "\\"", name); gsub(/"/, "\\"", program); print "<member id=\"" id "\" name=\"" name "\" program=\"" program "\" />"; }' >> $@
14 echo '</memberlist>' >> $@
17 echo '<?xml version='\''1.0'\'' encoding="ISO-8859-1"?>' > $@
18 echo '<booklist>' >> $@
19 ceoquery booklist | awk -F \| '{ isbn = $$1; title = $$2; author = $$3; edition = $$4; published = $$5; gsub(/&/, "\\&", title); gsub(/&/, "\\&", author); gsub(/&/, "\\&", published); gsub(/&/, "\\&", edition); gsub(/"/, "\\"", title); gsub(/"/, "\\"", author); gsub(/"/, "\\"", published); gsub(/"/, "\\"", edition); print "<book isbn=\"" isbn "\" title=\"" title "\" author=\"" author "\" edition=\"" edition "\" published=\"" published "\"/>"; }' >> $@
20 echo '</booklist>' >> $@
24 default.mk: default.mk.in
25 echo 'ROOT = '`pwd` > $@
28 .PHONY: members.xml books.xml