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
RevLine 
[326]1TARGET=mondorescue-howto
2SRC=$(shell ls *.sgml)
3DSL=$(TARGET).dsl
4IMAGES=$(shell ls images/*.png)
5
[327]6all: $(TARGET).ps $(TARGET).pdf $(TARGET)/index.html $(TARGET).txt $(TARGET).html $(TARGET).rtf
[326]7
[327]8$(TARGET).txt: $(SRC)
[328]9 docbook2txt $(TARGET).sgml
[326]10
[327]11$(TARGET).ps: $(SRC) $(DSL) $(IMAGES)
[328]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
[326]18
19$(TARGET)/index.html: $(SRC) $(DSL) $(IMAGES)
[328]20 rm -f $(TARGET)
21 docbook2html -d $(TARGET).dsl'#html' -o $(TARGET) $(TARGET).sgml
[326]22
23$(TARGET).html: $(SRC) $(DSL) $(IMAGES)
[328]24 docbook2html -u -d $(TARGET).dsl'#txt' $(TARGET).sgml
[326]25
[327]26$(TARGET).pdf: $(SRC) $(DSL) $(IMAGES)
[328]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
[326]32
[327]33$(TARGET).rtf: $(SRC) $(DSL) $(IMAGES)
[328]34 docbook2rtf -d $(TARGET).dsl'#pdf' $(TARGET).sgml
[326]35
36clean:
[327]37 rm -fr $(TARGET).{aux,log,out,tex,dvi,pdf,ps,txt,rtf} $(TARGET)
Note: See TracBrowser for help on using the repository browser.