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

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

Use docbook-utils

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