Ignore:
Timestamp:
Jan 17, 2006, 7:45:09 PM (14 years ago)
Author:
bcornec
Message:

Doc generation OK.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/documentation/Makefile

    r330 r331  
    22SRC=$(shell ls *.sgml)
    33DSL=$(TARGET).dsl
    4 IMAGES=$(shell ls images/*.png)
     4IMAGES=$(shell ls images/*.png | sed 's/\.png/.eps/g')
    55
    66all: $(TARGET).ps $(TARGET).pdf $(TARGET)/index.html $(TARGET).txt $(TARGET).html $(TARGET).rtf
     7
     8images/%.eps: images/%.png
     9    @echo "Converting $< to $@"
     10    @convert $< $@
    711       
    812$(TARGET).txt: $(SRC)
    9     docbook2txt $(TARGET).sgml
     13    @echo ""
     14    @echo "Generating doc in TXT format"
     15    @echo "----------------------------"
     16    @docbook2txt $(TARGET).sgml
    1017
    1118$(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
     19    @echo ""
     20    @echo "Generating doc in PostScript format"
     21    @echo "-----------------------------------"
     22    @docbook2ps -d $(TARGET).dsl'#print' $(TARGET).sgml
    1823
    1924$(TARGET)/index.html: $(SRC) $(DSL) $(IMAGES)
    20     rm -f $(TARGET)
    21     docbook2html -d $(TARGET).dsl'#html' -o $(TARGET) $(TARGET).sgml
     25    @echo ""
     26    @echo "Generating all HTML pages"
     27    @echo "-------------------------"
     28    @rm -fr $(TARGET)
     29    @docbook2html -d $(TARGET).dsl'#html' -o $(TARGET) $(TARGET).sgml
    2230
    2331$(TARGET).html: $(SRC) $(DSL) $(IMAGES)
    24     docbook2html -u -d $(TARGET).dsl'#txt' $(TARGET).sgml
     32    @echo ""
     33    @echo "Generating doc in HTML format"
     34    @echo "-----------------------------"
     35    @docbook2html -u -d $(TARGET).dsl'#txt' $(TARGET).sgml
    2536   
    2637$(TARGET).pdf: $(SRC) $(DSL) $(IMAGES)
    27     docbook2pdf -d $(TARGET).dsl'#pdf' $(TARGET).sgml
    28     pdflatex -fmt=jadetex -mltex $(TARGET).tex
    29     pdflatex -fmt=jadetex -mltex $(TARGET).tex
    30     pdflatex -fmt=jadetex -mltex $(TARGET).tex
    31     dvips $(TARGET).dvi -o $(TARGET).pdf
     38    @echo ""
     39    @echo "Generating doc in PDF format"
     40    @echo "----------------------------"
     41    @docbook2pdf -d $(TARGET).dsl'#pdf' $(TARGET).sgml
    3242
    3343$(TARGET).rtf: $(SRC) $(DSL) $(IMAGES)
    34     docbook2rtf -d $(TARGET).dsl'#pdf' $(TARGET).sgml
     44    @echo ""
     45    @echo "Generating doc in RTF format"
     46    @echo "----------------------------"
     47    @docbook2rtf -d $(TARGET).dsl'#print' $(TARGET).sgml
    3548
    3649clean:
    37     rm -fr $(TARGET).{aux,log,out,tex,dvi,pdf,ps,txt,rtf} $(TARGET)
     50    @echo ""
     51    @echo "Cleaning up the documentation directory"
     52    @echo ""
     53    @rm -fr $(TARGET).{aux,log,out,tex,dvi,pdf,ps,txt,rtf,html} $(TARGET)
Note: See TracChangeset for help on using the changeset viewer.