Newer
Older
LaTeX / fonts / Makefile
  1. ################################################################################
  2. #
  3. # Makefile to install various fonts so that LaTeX can find them.
  4. #
  5. # You should only need to run this once after TeX Live install to set things,
  6. # up, which is why it isn't called from the Makefile in the parent directory.
  7. # Since we're installing into TEXMFLOCAL, you'll need to 'sudo make install'.
  8. # WARNING: any predefined TEXMF environment variables probably won't be
  9. # available under sudo! Be sure to pass them on the command line if needed:
  10. # e.g., 'make install TEXMFLOCAL=/usr/local/texmf'.
  11. #
  12. # NOTE: If this is the first time you've done this, you may need to
  13. #
  14. ################################################################################
  15.  
  16. SHELL=/bin/sh
  17.  
  18. # Set this to whatever it should be, e.g., /etc/texmf or whatever. This should
  19. # be the parent directory of the 'updmap.d' directory.
  20. # TEXMFSYSCONFIG =
  21. UPDMAP=$(TEXMFSYSCONFIG)/updmap.d
  22.  
  23. # Set this to whatever it should be, e.g., /usr/local/texmf or whatever.
  24. # Fonts need to go into the local TEXMF tree to be visible to updmap (not your
  25. # personal TEXMF tree)
  26. # TEXMFLOCAL =
  27. FONTS=$(TEXMFLOCAL)/fonts
  28. LATEX=$(TEXMFLOCAL)/tex/latex
  29.  
  30. # Use rsync so we don't clobber anything that's already there, and only copy
  31. # what's absolutely necessary. Don't use rsync -a as we don't want to preserve
  32. # the group (-g) and owner (-a) if we're writing into a system directory.
  33. install:
  34. @cp 99local.cfg $(UPDMAP)
  35. @mkdir -p $(FONTS) $(LATEX)
  36. @rsync -rlptDv fonts/ $(FONTS)
  37. @rsync -rlptDv latex/ $(LATEX)
  38. @texhash
  39. @updmap-sys
  40.  
  41. debug:
  42. @echo "TEXMFSYSCONFIG = [$(TEXMFSYSCONFIG)]"
  43. @echo "TEXMFLOCAL = [$(TEXMFLOCAL)]"
  44. @echo "UPDMAP = [$(UPDMAP)]"
  45. @echo "FONTS = [$(FONTS)]"
  46. @echo "LATEX = [$(LATEX)]"