MAKE=make all: copy bib thesis dropbox: pdflatex thesis makeindex thesis.glo -s thesis.ist -t thesis.glg -o thesis.gls cp thesis.pdf /home/robin/Dropbox/Robin_PhD_folder/thesis evince thesis.pdf || acroread thesis.pdf || xpdf thesis.pdf thesis: pdflatex thesis makeindex thesis.glo -s thesis.ist -t thesis.glg -o thesis.gls evince thesis.pdf || acroread thesis.pdf || xpdf thesis.pdf clean: rm thesis.pdf rm -rf thesis.aux thesis.blg thesis.glo thesis.ist thesis.lof thesis.lot \ thesis.pdf thesis.tex~ thesis.toc thesis.bbl thesis.glg thesis.gls \ thesis.loa thesis.log thesis.out thesis.tex.backup bib: pdflatex thesis # do this first otherwise bibtex gets its knickers in a twist bibtex thesis copy: echo "chapters submake"; sleep 2 cd CH1_introduction && $(MAKE) copy cd CH2_FMEA && $(MAKE) copy cd CH3_FMEA_criticism && $(MAKE) copy cd CH4_FMMD && $(MAKE) copy cd CH5_Examples && $(MAKE) copy cd CH6_Software_Examples && $(MAKE) copy cd CH7_Evaluation && $(MAKE) copy cd CH8_Conclusion && $(MAKE) copy #cd CH8_finsh_appendixes; $(MAKE) copy