File: Makefile

package info (click to toggle)
yaws 1.65-4etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,164 kB
  • ctags: 3,907
  • sloc: erlang: 20,138; sh: 3,675; makefile: 556; ansic: 404; lisp: 79
file content (33 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (2)
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

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:	yaws.ps yaws.pdf

yaws.ps:	yaws.dvi
	-dvips -o yaws.ps yaws.dvi
	-cp yaws.ps ../www

yaws.pdf:	yaws.tex $(IMG_PDF)
	-pdflatex yaws.tex
	-cp yaws.pdf ../www

yaws.dvi:	yaws.tex  $(IMG_EPS)
	-latex yaws.tex
	-latex yaws.tex

%.pdf:	%.eps
	-epstopdf $<

clean:
	-rm *~ *.ps *.dvi *.log *.aux *.pdf *.toc *.beam 2> /dev/null

install:
	-install -d $(DESTDIR)/$(PREFIX)/share/doc/yaws
	-cp yaws.pdf $(DESTDIR)/$(PREFIX)/share/doc/yaws