Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. # This is a compromise. Build faster by using a binary cache, but
  19. # still allow minor version patches by pointing at the head of a
  20. # (dynamic) channel.
  21. nix-fast:
  22. NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-17.03.tar.gz $(MAKE) nix-head
  23. # Build with whatever version of nixpkgs is in the users environment:
  24. nix-head:
  25. nix-shell --pure --run make
  26. # Specific to Fall16:
  27. publish:
  28. scp build/book.pdf tank.soic.indiana.edu:p523-web/book.pdf