Browse Source

Add clean targets

master
Peter J. Jones 9 years ago
parent
commit
90c7315591
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      Makefile

+ 8
- 0
Makefile View File

@@ -6,6 +6,14 @@ all: $(MAIN_PDF_FILE)

$(MAIN_PDF_FILE): $(CHAPTER_TEX_FILES)

clean:
@mv $(MAIN_PDF_FILE) _$(MAIN_PDF_FILE)
latexmk -C $(MAIN_TEX_FILE)
@mv _$(MAIN_PDF_FILE) $(MAIN_PDF_FILE)

realclean:
latexmk -C $(MAIN_TEX_FILE)

open: $(MAIN_PDF_FILE)
@open $<


Loading…
Cancel
Save