Makefile 828 B

1234567891011121314151617181920212223242526272829
  1. # You want latexmk to *always* run, because make does not have all the info.
  2. # Also, include non-file targets in .PHONY so they are run regardless of any
  3. # file of the given name existing.
  4. .PHONY: proceedings.pdf all clean
  5. # The first rule in a Makefile is the one executed by default ("make"). It
  6. # should always be the "all" rule, so that "make" and "make all" are identical.
  7. all: proceedings.pdf
  8. # CUSTOM BUILD RULES
  9. # In case you didn't know, '$@' is a variable holding the name of the target,
  10. # and '$<' is a variable holding the (first) dependency of a rule.
  11. # "raw2tex" and "dat2tex" are just placeholders for whatever custom steps
  12. # you might have.
  13. %.tex: %.raw
  14. ./raw2tex $< > $@
  15. %.tex: %.dat
  16. ./dat2tex $< > $@
  17. proceedings.pdf: proceedings.tex
  18. rubber -v proceedings.tex
  19. clean:
  20. rubber --clean proceedings.tex