-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
51 lines (40 loc) · 1.29 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
#!make -rRf
# -------------------------------------------------------------
# gitinfo2
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
latexmk = /cygdrive/d/Programs/TeX.Live/texmf-dist/scripts/latexmk/latexmk.pl
viewpdf = /cygdrive/c/Program\ Files/Tracker\ Software/PDF\ Viewer/PDFXCview.exe
lmkexec = latexmk
git = git
# git = /cygdrive/c/Program\ Files\ \(x86\)/Git/bin/git.exe
silent =
include ~/.make/Makefile
archive = gitinfo2.tar.gz
ginfile = .git/gitHeadInfo.gin
pseudofile = gitHeadLocal.gin
codelist = gitinfo2.sty gitexinfo.sty
docslist = gitinfo2.tex gitinfo2.pdf $(pseudofile)
morelist = gitinfotest.tex post-xxx-sample.txt README
dirtlist = gitinfo2.pdf gitinfo2.tar.gz $(pseudofile)
list = $(codelist) $(docslist) $(morelist)
auxdir = .auxfiles
ship: $(archive)
$(archive): $(list)
# texlua build.lua ctan
chmod -R 644 $^ testfiles/*
perl `which ctanify` $^
chmod 644 $@
clean $(ginfile):
$(git) checkout $(dirtlist)
gitinfo2.pdf: gitinfo2.tex $(pseudofile)
rm -f $@ $(auxdir)/$@
$(lmkexec) -outdir=$(auxdir) $(silent) -xelatex -e '$$makeindex=q/makeindex %O -s blindex.ist -o %D %S/' "$<"
chmod a+rw $(auxdir) $(auxdir)/*
mv $(auxdir)/$@ ./
%.view: %.pdf
$(viewpdf) $<
$(pseudofile): $(ginfile)
cp $< $@
chmod 644 $@
gitinfotest.pdf: gitinfotest.tex
xelatex $<