Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 48 lines (35 sloc) 1.096 kb
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
Something went wrong with that request. Please try again.