P=ads X:=$(shell for a in 1 4 ; do echo ../$$a-*/$$a-*.tex ; done) %universe: all ChangeLog CUSTOM_UPLOAD=1 include ../Makerules ads.dvi: ads.tex body.tex body.tex: $(X) preprocess ./preprocess $(X) >$@ %ChangeLog: % git-log -C --pretty=medium --since='4 weeks ago' --stat | grep -v '^---' >ChangeLog clean:: rm -f body.tex ChangeLog upload:: make $P.ps $P-2in1.ps scp -C $P.ps $P-2in1.ps jabberwock:www/vyuka/0607/ads1/ ( cd .. && make clean ) ( cd ../.. && tar czf - --exclude .git ads ) | ssh jabberwock 'cd www/vyuka/0607/ads1/ && cat >ads.tar.gz.new && mv ads.tar.gz.new ads.tar.gz' #make ChangeLog && cat ChangeLog | ssh jabberwock 'cd www/vyuka/ads1 && cat >ChangeLog.new && mv ChangeLog.new ChangeLog'