forked from zepinglee/gbt7714-bibtex-style
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (41 loc) · 1.16 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
.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/save.sh
save : savebst
l3build save --quiet super
l3build save --quiet numbers
l3build save --quiet authoryear
l3build save --quiet legacy-super
l3build save --quiet legacy-numbers
l3build save --quiet legacy-authoryear
l3build save --config test/config-chapterbib package-chapterbib
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)/{README.md,LICENSE,$(NAME).dtx,$(NAME).ins,\
$(NAME).pdf,CHANGELOG.md}
rm $(NAME)