-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
64 lines (47 loc) · 1.48 KB
/
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
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
CTANUPLOAD=ctanupload
CONTRIBUTION = moderntimeline
VERSION = v0.11
SUMMARY = Add timelines to moderncv entries
NAME = Raphaël Pinson
EMAIL = [email protected]
DIRECTORY = /macros/latex/contrib/$(CONTRIBUTION)
DONOTANNOUNCE = 0
LICENSE = free
FREEVERSION = lppl
FILE = $(CONTRIBUTION).tar.gz
SOURCEFILES = $(CONTRIBUTION).dtx $(CONTRIBUTION).ins
PKGFILES = $(CONTRIBUTION).sty
DOCFILES = $(CONTRIBUTION).pdf
TEXINSTALLDIR = /usr/local/texlive/texmf-local
# Checks
EXPECTED_PAGES = 9
export CONTRIBUTION VERSION NAME EMAIL SUMMARY DIRECTORY DONOTANNOUNCE ANNOUNCE NOTES LICENSE FREEVERSION FILE
# default rule
ctanify: $(FILE)
$(FILE): README.md $(SOURCEFILES) $(DOCFILES) $(PKGFILES)
ctanify --pkgname $(CONTRIBUTION) $^
%.sty: %.dtx %.ins
latex $*.ins
%.pdf: %.tex
pdflatex -interaction=batchmode $<
pdflatex -interaction=batchmode $<
$(CONTRIBUTION).pdf: $(CONTRIBUTION).sty
pdflatex -interaction=batchmode $(CONTRIBUTION).dtx
makeindex -s gind.ist $(CONTRIBUTION).idx
makeindex -s gglo.ist -o $(CONTRIBUTION).gls $(CONTRIBUTION).glo
pdflatex -interaction=batchmode $(CONTRIBUTION).dtx
upload: ctanify
$(CTANUPLOAD) -P
%.tds.zip: %.tar.gz
tar xzf $< $@
install: $(CONTRIBUTION).tds.zip
unzip $< -d $(TEXINSTALLDIR)
mktexlsr
test: $(CONTRIBUTION)-test.pdf
clean:
rm -f *.aux *.glo *.idx *.log
rm -f $(DOCFILES) $(PKGFILES)
rm -f $(FILE)
check: $(CONTRIBUTION).pdf
test -e $(CONTRIBUTION).pdf
rspec spec/pdf_spec.rb