Makefile 991 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/usr/bin/env make -f
  2. # Manual Makefile called by {SPM}/src/Makefile
  3. #
  4. # Copyright (C) 2016-2018 Wellcome Trust Centre for Neuroimaging
  5. #
  6. # $Id: Makefile 7485 2018-11-14 10:31:57Z guillaume $
  7. include ../src/Makefile.var
  8. PDFLATEX = pdflatex -interaction=batchmode
  9. BIBTEX = bibtex
  10. ifeq (octave,$(PLATFORM))
  11. SPMEXE = ../bin/spm12-octave
  12. else
  13. SPMEXE = ../bin/spm12-matlab
  14. endif
  15. SPMPDF = manual.pdf ReleaseNotes.pdf
  16. all: $(SPMPDF)
  17. @:
  18. clean:
  19. $(DEL) *.toc *.aux */*.aux *.log *.out *.bbl *.blg *.maf *.mtc*
  20. distclean: clean
  21. $(DEL) $(SPMPDF)
  22. install:
  23. @:
  24. %.pdf: %.tex
  25. $(call makepdf, $*)
  26. manual.pdf: manual.tex spm_manual.tex
  27. $(call makepdf, "manual")
  28. spm_manual.tex:
  29. $(call verb, "Creating TEX files")
  30. @ ${SPMEXE} eval "spm_jobman initcfg;spm_make_manual;"
  31. $(call verb, "TEX files: done")
  32. define makepdf
  33. $(call verb, "Building $(1).pdf")
  34. @ $(PDFLATEX) $(1) && $(BIBTEX) $(1) && $(PDFLATEX) $(1) && $(PDFLATEX) $(1)
  35. $(call verb, "$(1).pdf: done")
  36. endef