テストの追加・整理
[makefiles.git] / latex_mk / test / bibtex / Makefile
1 .PHONY: all bib-update bib-rebase tex-update rebase clean distclean
2
3 CAT := cat
4 CMP := cmp -s
5 SED := sed
6
7 TEXTARGETS := bibtex.pdf
8
9 all: $(TEXTARGETS)
10
11 include latex.mk
12
13 rebase: bib-rebase tex-rebase
14
15 bib-update: bib-rebase
16         $(CAT) jpnbook_add.bib >>jpnbook.bib
17
18 bib-rebase:
19         $(CMP) jpnbook.bib.base jpnbook.bib || $(CP) jpnbook.bib.base jpnbook.bib
20
21 tex-update: tex-rebase
22         $(SED) -i s/bibtexのテスト。/bibtexのテスト。本文だけ変更。/ bibtex.tex
23
24 tex-rebase:
25         $(CMP) bibtex.tex.base bibtex.tex || $(CP) bibtex.tex.base bibtex.tex
26
27 clean: tex-clean
28
29 distclean: rebase tex-distclean