P=ga
-X=$(shell for a in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ; do echo ../$$a-*/$$a-*.tex ; done)
+CHAP=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
+CHAPTERS=$(shell for a in $(CHAP) ; do echo ../$$a-* ; done)
+X=$(shell for a in $(CHAP) ; do echo ../$$a-*/$$a-*.tex ; done)
universe: all
CUSTOM_UPLOAD=1
include ../Makerules
-ga.pdf: ga.tex body.tex
+ga.pdf: ga.tex body.tex chapters
body.tex: $(X) preprocess
./preprocess $(X) >$@
+chapters:
+ for chap in $(CHAPTERS) ; do make -C $$chap ; done
+
clean::
rm -f body.tex
/^\\input .*sgr\.tex/ && next;
/^\\references/ && next;
/^\\bye/ && last;
- s@\\(figure|fig|inlinefig|epsfbox){([^}]+)}@\\$1\{$d$2}@g;
+ s@\\(putepdf){([^}]*)}{([^}]+)}@\\$1\{$2}\{$d$3}@g;
+ s@\\(figure|fig|inlinefig){([^}]+)}@\\$1\{$d$2}@g;
s@\\(twofigures)\{([^}]+)}(\{[^}]+}\{[^}]+})\{([^}]+)}@\\$1\{$d$2}$3\{$d$4}@g;
print;
}