Precursor to Effective Ruby.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 413B

123456789101112131415161718192021
  1. MAIN_TEX_FILE = adv-ruby.tex
  2. MAIN_PDF_FILE = $(MAIN_TEX_FILE:.tex=.pdf)
  3. CHAPTER_TEX_FILES = $(wildcard chapters/*.tex)
  4. all: $(MAIN_PDF_FILE)
  5. $(MAIN_PDF_FILE): $(CHAPTER_TEX_FILES)
  6. clean:
  7. @mv $(MAIN_PDF_FILE) _$(MAIN_PDF_FILE)
  8. latexmk -C $(MAIN_TEX_FILE)
  9. @mv _$(MAIN_PDF_FILE) $(MAIN_PDF_FILE)
  10. realclean:
  11. latexmk -C $(MAIN_TEX_FILE)
  12. open: $(MAIN_PDF_FILE)
  13. @open $<
  14. %.pdf: %.tex
  15. latexmk -pdf $<