-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.in
More file actions
77 lines (51 loc) · 1.47 KB
/
Makefile.in
File metadata and controls
77 lines (51 loc) · 1.47 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Variables:
############
LATEX = @LATEX@
LATEX_FLAGS += -interaction=nonstopmode --shell-escape
LATEXMK = @LATEXMK@
LATEXMK_FLAGS += -latex="latex $(LATEX_FLAGS)" -pdfps -bibtex -use-make \
-halt-on-error
DVIPS = @DVIPS@
srcdir = @srcdir@
CLEAN_TARGETS = *~
DISTCLEAN_TARGETS =
target = template
.DEFAULT_GOAL = all
# Phony rules:
##############
.PHONY: all clean distclean
# SECONDARY with no prerequisites causes all targets to be treated as
# secondary (i.e., no target is removed because it is considered
# intermediate).
.SECONDARY:
all: $(target).pdf
clean:
$(LATEXMK) -CA
$(RM) -v $(CLEAN_TARGETS)
distclean: clean
$(RM) -v $(DISTCLEAN_TARGETS)
## @TODO For consistency, switch from cat to printf. See
## ppt/module.mk. (cat has trouble with newlines etc.)
tag: $(target).pdf
git tag -a "v$(shell cat VERSION)" \
-m "Version $(shell cat VERSION)" \
&& git push --tags \
&& mv $(target).pdf "$(target)-$(shell cat VERSION).pdf"
# Pattern rules:
################
# The --shell-escape argument is for Inkscape's process for converting
# SVG to EPS used in LaTeX files.
%.pdf: %.tex
$(LATEXMK) $(LATEXMK_FLAGS) $<
# Explicit rules:
#################
# Final document:
#$(target).pdf: $(target).tex $(target).bib $(TABLES) $(FIGS)
$(target).pdf: $(target).tex
# Recreate the Makefile, etc.:
configure: configure.ac aclocal.m4
cd '$(srcdir)' && autoconf
Makefile: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck