Makefile 844 B

1234567891011121314151617181920212223242526272829303132
  1. .PHONY: all cont continuous clean publish
  2. LATEXMK= latexmk -outdir=./build -pdf
  3. all:
  4. $(LATEXMK) book.tex
  5. cont: continuous
  6. continuous:
  7. $(LATEXMK) -pvc book.tex
  8. clean:
  9. $(LATEXMK) -C book.tex
  10. # Build with a fixed snapshot of NixPkgs 17.03. Known-to-work.
  11. # For a very clean version, run git clean -fxd followed by this:
  12. #
  13. # This may take a long time and build a complete version of texlive.
  14. # Since it is fixed-in-time it may not have binary caches available and
  15. # may need to build from source.
  16. nix:
  17. NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/51a83266d164195698f04468d90d2c6238ed3491.tar.gz $(MAKE) nix-head
  18. # Build with whatever version of nixpkgs is in the users environment:
  19. nix-head:
  20. nix-shell --pure --run make
  21. # Specific to Fall16:
  22. publish:
  23. scp build/book.pdf tank.soic.indiana.edu:p523-web/book.pdf