-
Notifications
You must be signed in to change notification settings - Fork 200
/
Makefile
54 lines (39 loc) · 1.1 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
.PHONY : test testall save all bst doc clean cleanall install ctan FORCE_MAKE
NAME = gbt7714
PKGFILES = $(NAME).sty
BSTFILES = $(NAME)-numerical.bst $(NAME)-author-year.bst
TEXOPTS = -file-line-error -halt-on-error -interaction=nonstopmode
LATEXMK = latexmk -xelatex $(TEXOPTS)
testbst : bst
bash test/test.sh
test: testbst
l3build check
savebst:
bash test/test.sh
save : savebst
l3build save --quiet super
l3build save --quiet numbers
l3build save --quiet author-year
l3build save --config test/config-chapterbib package-chapterbib
l3build save --config test/config-bibunits package-bibunits
all : test doc
bst : $(PKGFILES) $(BSTFILES)
doc : $(NAME).pdf
%.sty %-numerical.bst %-author-year.bst : %.ins %.dtx
xetex $(TEXOPTS) $<
xetex $(TEXOPTS) variants/gbt7714-variants.ins
$(NAME).pdf : $(NAME).dtx FORCE_MAKE
$(LATEXMK) $<
clean :
$(LATEXMK) -c $(NAME).dtx
l3build clean
cleanall :
$(LATEXMK) -C $(NAME).dtx
l3build clean
install :
l3build install
ctan : test doc
ln -sf . $(NAME)
zip -r ../$(NAME).zip $(NAME)/{$(NAME)-*.bst,$(NAME).sty,$(NAME).pdf,README.md,\
CHANGELOG.md}
rm $(NAME)