-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (21 loc) · 601 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
NAME := rcrc
SOURCES := $(NAME).tex
OUT := $(NAME).pdf
# Needed tools
PDFLATEX = pdflatex
# Arguments passed to pdflatex
PDFLATEX_OPT = -shell-escape -file-line-error -halt-on-error
all: $(OUT)
$(OUT): $(SOURCES) images/*.svg images/*.png listings/*.mac
@echo " PDFLATEX: 1st run"
@$(PDFLATEX) $(PDFLATEX_OPT) $(SOURCES)
@echo " PDFLATEX: 2nd run"
@$(PDFLATEX) $(PDFLATEX_OPT) $(SOURCES)
clean:
@echo " CLEAN"
@rm -f $(NAME).aux $(NAME).log $(NAME).out $(NAME).toc
@rm -rf images/*.pdf images/*.pdf_tex
distclean: clean
@echo " DISTCLEAN"
@rm -f $(OUT)
.PHONY: all clean distclean