Makefile 1.11 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
# Makefile for the VideoLAN Documentation

DOC := videolan-quickstart

# We build HTML, PS, PDF, RTF and  TXT for the Web site
all: images html ps pdf rtf txt

# Get the images from the /images/documentation directory
images:
	rm -rf images
	cp -R ../../images/documentation images
12 13 14

html:
	/bin/cp ../common/magic-jpg.sgml ../common/magic.sgml
15 16 17
	sgmltools -b html -s ../common/stylesheet-html.dsl $(DOC).sgml
	mv $(DOC)/*.html .
	rmdir $(DOC)
18
	ln -sf book1.html index.html
19 20
	rm -f $(DOC)-html.zip
	zip $(DOC)-html.zip *.html images/*.jpg
21 22 23

ps:
	/bin/cp ../common/magic-eps.sgml ../common/magic.sgml
24 25
	sgmltools -b ps -s ../common/stylesheet-print.dsl $(DOC).sgml
	zip $(DOC)-ps.zip $(DOC).ps
26 27 28

pdf:
	/bin/cp ../common/magic-jpg.sgml ../common/magic.sgml
29 30
	sgmltools -b pdf -s ../common/stylesheet-print-noicones.dsl $(DOC).sgml
	zip $(DOC)-pdf.zip $(DOC).pdf
31 32 33

rtf:
	/bin/cp ../common/magic-jpg.sgml ../common/magic.sgml
34 35 36
	sgmltools -b rtf -s ../common/stylesheet-print-noicones.dsl $(DOC).sgml
	rm -f $(DOC)-rtf.zip
	zip $(DOC)-rtf.zip $(DOC).rtf images/*.jpg
37

38
txt:
39
	sgmltools -b txt $(DOC).sgml
40

41
clean:
42
	rm -f *.zip *.html *.pdf *.ps *.txt *.rtf