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

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

Use docbook-utils

File size: 928 bytes
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)
9 docbook2txt -u $(TARGET).sgml -o $(TARGET).txt
[326]10
[327]11$(TARGET).ps: $(SRC) $(DSL) $(IMAGES)
12 docbook2ps -d $(TARGET).dsl'#print' -o $(TARGET).ps $(TARGET).sgml
[326]13
14$(TARGET)/index.html: $(SRC) $(DSL) $(IMAGES)
15 mkdir -p $(TARGET)
16 cd $(TARGET)
[327]17 docbook2html -d $(TARGET).dsl'#html' $(TARGET).sgml
[326]18 cd ..
19
20$(TARGET).html: $(SRC) $(DSL) $(IMAGES)
[327]21 docbook2html -u -d $(TARGET).dsl'#txt' -o $(TARGET).html $(TARGET).sgml
[326]22
[327]23$(TARGET).pdf: $(SRC) $(DSL) $(IMAGES)
24 docbook2html -u -d $(TARGET).dsl'#pdf' -o $(TARGET).pdf $(TARGET).sgml
[326]25
[327]26$(TARGET).rtf: $(SRC) $(DSL) $(IMAGES)
27 docbook2rtf -u -d $(TARGET).dsl'#pdf' -o $(TARGET).rtf $(TARGET).sgml
[326]28
29clean:
[327]30 rm -fr $(TARGET).{aux,log,out,tex,dvi,pdf,ps,txt,rtf} $(TARGET)
Note: See TracBrowser for help on using the repository browser.