-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (31 loc) · 907 Bytes
/
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
DOCTARGET = pbibtex-manual
# following documents are not maintained anymore:
# jbibtex jbtxdoc jbtxhak
PDFTARGET = $(addsuffix .pdf,$(DOCTARGET))
DVITARGET = $(addsuffix .dvi,$(DOCTARGET))
KANJI = -kanji=utf8
#FONTMAP = -f ipaex.map -f ptex-ipaex.map
#FONTMAP = -f haranoaji.map -f ptex-haranoaji.map -f otf-haranoaji.map
FONTMAP = -f haranoaji.map
TEXMF = $(shell kpsewhich -var-value=TEXMFHOME)
LTX = platex $(KANJI)
DPX = dvipdfmx $(FONTMAP)
default: $(DVITARGET)
all: $(PDFTARGET)
.SUFFIXES: .tex .dvi .pdf
.tex.dvi:
$(LTX) $<
$(LTX) $<
$(LTX) $<
rm -f *.aux *.log *.toc
.dvi.pdf:
$(DPX) $<
.PHONY: install clean
install:
mkdir -p ${TEXMF}/doc/ptex/pbibtex-manual
cp ./LICENSE ${TEXMF}/doc/ptex/pbibtex-manual/
cp ./README* ${TEXMF}/doc/ptex/pbibtex-manual/
cp ./*.tex ${TEXMF}/doc/ptex/pbibtex-manual/
cp ./*.pdf ${TEXMF}/doc/ptex/pbibtex-manual/
clean:
rm -f $(DVITARGET) $(PDFTARGET)