# # Makefile for John Skilling's C code # David MacKay # tar: ALWAYS tar zcvfh /home/mackay/pubwww/bayesys/sivia/sivia.tar.gz \ *.c \ Makefile _Makefile README zip /home/mackay/pubwww/bayesys/sivia/sivia.zip \ *.c \ Makefile _Makefile README ALWAYS: CC = gcc directories: - mkdir _crystal - ( cd _crystal; ln -s ../_Makefile Makefile ; ln -s ../mininest.c ; ln -s ../crystal.c apply.c ) - mkdir _lighthouse - ( cd _lighthouse; ln -s ../_Makefile Makefile ; ln -s ../mininest.c ; ln -s ../lighthouse.c apply.c ) - mkdir _onoff - ( cd _onoff; ln -s ../_Makefile Makefile ; ln -s ../mininest.c ; ln -s ../onoff.c apply.c ; ln -s ../tree.c . ) - mkdir _quantify - ( cd _quantify; ln -s ../_Makefile Makefile ; ln -s ../mininest.c ; ln -s ../quantify.c apply.c ; ln -s ../tree.c . ) - ln -s _crystal/mininest crystal - ln -s _lighthouse/mininest lighthouse - ln -s _onoff/mininest onoff - ln -s _quantify/mininest quantify all: echo "You should 'make directories' before making all" make crystal make lighthouse make onoff make quantify crystal: ALWAYS (cd _crystal; make mininest ) lighthouse: ALWAYS (cd _lighthouse; make mininest ) onoff: ALWAYS (cd _onoff; make mininest ) quantify: ALWAYS (cd _quantify; make mininest ) mininest: echo "Don't try to make mininest in this directory; see README" make apply.c clean: ALWAYS rm *.o apply.c: echo "mininest.c needs to be associated with a file apply.c that defines the problem" %.dvi: %.tex tex $* if grep Rerun $*.log > /dev/null; then tex $*; fi - grep Warning $*.log %.ps: %.dvi dvips $< -G0 -z -Pcmz -t a4 -o $*.ps %.pdf: %.ps ps2pdf13 -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFsettings=/prepress -sPAPERSIZE=a4 $< $*.pdf