source: MondoRescue/branches/2.06/documentation/Makefile@ 328

Last change on this file since 328 was 328, checked in by bcornec, 18 years ago

Documentation work goes on:

  • 20 new sgml chunks integrated
  • Makefile really working now for the first case
  • FDL now has ids
File size: 1.2 KB
Line 
1TARGET=mondorescue-howto
2SRC=$(shell ls *.sgml)
3DSL=$(TARGET).dsl
4IMAGES=$(shell ls images/*.png)
5
6all: $(TARGET).ps $(TARGET).pdf $(TARGET)/index.html $(TARGET).txt $(TARGET).html $(TARGET).rtf
7
8$(TARGET).txt: $(SRC)
9 docbook2txt $(TARGET).sgml
10
11$(TARGET).ps: $(SRC) $(DSL) $(IMAGES)
12 #docbook2ps -d $(TARGET).dsl'#print' -o $(TARGET).ps $(TARGET).sgml
13 docbook2ps $(TARGET).sgml
14 hugelatex -fmt=jadetex -mltex $(TARGET).tex
15 hugelatex -fmt=jadetex -mltex $(TARGET).tex
16 hugelatex -fmt=jadetex -mltex $(TARGET).tex
17 dvips $(TARGET).dvi -o $(TARGET).ps
18
19$(TARGET)/index.html: $(SRC) $(DSL) $(IMAGES)
20 rm -f $(TARGET)
21 docbook2html -d $(TARGET).dsl'#html' -o $(TARGET) $(TARGET).sgml
22
23$(TARGET).html: $(SRC) $(DSL) $(IMAGES)
24 docbook2html -u -d $(TARGET).dsl'#txt' $(TARGET).sgml
25
26$(TARGET).pdf: $(SRC) $(DSL) $(IMAGES)
27 docbook2pdf -d $(TARGET).dsl'#pdf' $(TARGET).sgml
28 hugepdflatex -fmt=jadetex -mltex $(TARGET).tex
29 hugepdflatex -fmt=jadetex -mltex $(TARGET).tex
30 hugepdflatex -fmt=jadetex -mltex $(TARGET).tex
31 dvips $(TARGET).dvi -o $(TARGET).pdf
32
33$(TARGET).rtf: $(SRC) $(DSL) $(IMAGES)
34 docbook2rtf -d $(TARGET).dsl'#pdf' $(TARGET).sgml
35
36clean:
37 rm -fr $(TARGET).{aux,log,out,tex,dvi,pdf,ps,txt,rtf} $(TARGET)
Note: See TracBrowser for help on using the repository browser.