Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # $Id: Makefile,v 1.4 2012-09-21 17:40:44 karl Exp $
  2. # Makefile for texinfo/doc/refcard.
  3. # This is not hooked into Automake, just conveniences for working on the
  4. # refcard.
  5. #
  6. # Copyright 2008, 2012, 2014, 2015 Free Software Foundation, Inc.
  7. #
  8. # This file is free software; as a special exception the author gives
  9. # unlimited permission to copy and/or distribute it, with or without
  10. # modifications, as long as this notice is preserved.
  11. #
  12. # This program is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
  14. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. doc = txirefcard
  16. # parallel makes, etc., will fail.
  17. all: $(doc).pdf $(doc)-a4.pdf
  18. # trying to get it work with pdftex isn't worth the trouble.
  19. $(doc).pdf: $(doc).tex
  20. tex '\nonstopmode \input $(doc)'
  21. dvips -t landscape -t letter $(doc) -o
  22. ps2pdf $(doc).ps
  23. $(doc)-a4.pdf: $(doc).tex
  24. tex '\nonstopmode \let\afour=1 \input $(doc)'
  25. dvips -t landscape -t a4 $(doc) -o
  26. ps2pdf $(doc).ps $@
  27. check: ccheck vcheck
  28. ccheck:
  29. ./txicmdcheck $(txi_check_args)
  30. vcheck:
  31. ./txivarcheck $(txi_check_args)
  32. spell:
  33. aspell list --mode=tex --add-extra-dicts=`pwd`/refcard.spell \
  34. < $(doc).tex | sort -f -u
  35. clean:
  36. rm -f $(doc)*.dvi $(doc)*.log $(doc)*.ps
  37. distclean: clean
  38. rm -f $(doc)*.pdf