-
Notifications
You must be signed in to change notification settings - Fork 267
/
Makefile
49 lines (35 loc) · 1.07 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
include ../include.mk
include ../vsn.mk
IMG_EPS = $(wildcard *.eps)
IMG_PDF = $(IMG_EPS:.eps=.pdf)
all debug:
echo "To build the docs, please use make docs before doing make install"
docs: check yaws.ps yaws.pdf
check:
@if [ -z "$(DVIPS)" ]; then \
echo "Need dvips"; exit 1; \
fi
@if [ -z "$(PDFLATEX)" ]; then \
echo "Need pdflatex"; exit 1; \
fi
@if [ -z "`which latex2html`" ]; then \
echo "Need latex2html"; exit 1; \
fi
yaws.ps: yaws.dvi
$(COND_DVILATEX)$(DVIPS) -o yaws.ps yaws.dvi
$(COND_DVILATEX)cp yaws.ps ../www
yaws.pdf: yaws.tex $(IMG_PDF)
$(COND_PDFLATEX)$(PDFLATEX) yaws.tex
$(COND_PDFLATEX)$(PDFLATEX) yaws.tex
$(COND_PDFLATEX)cp yaws.pdf ../www
yaws.dvi: yaws.tex $(IMG_EPS)
$(COND_DVILATEX)$(DVILATEX) yaws.tex
$(COND_DVILATEX)$(DVILATEX) yaws.tex
%.pdf: %.eps
$(COND_PDFLATEX)$(EPSTOPDF) $<
clean:
rm -f *.ps *.dvi *.log *.aux *.pdf *.toc *.beam 2> /dev/null || true
rm -f *.out ../www/yaws.ps ../www/yaws.pdf 2> /dev/null || true
install:
-install -d $(DESTDIR)$(PREFIX)/share/doc/yaws
-cp yaws.pdf $(DESTDIR)$(PREFIX)/share/doc/yaws