source: MondoRescue/branches/3.0/mondo-doc/Makefile.howto@ 3138

Last change on this file since 3138 was 3138, checked in by Bruno Cornec, 11 years ago

r5337@localhost: bruno | 2013-06-13 01:56:06 +0200

  • Attempt to realize #700 by adding a CLI parameter to modify the biggie file size limit. By default 64 MB.
  • Also with previous commit, fixes #700 by using blocks, and adapting autoconf to use it as well.
File size: 1.9 KB
RevLine 
[339]1#
[401]2# Makefile for mondorescue howto
[339]3#
4# $Id$
5#
[326]6TARGET=mondorescue-howto
7SRC=$(shell ls *.sgml)
8DSL=$(TARGET).dsl
[338]9IMAGESDIR=images
10IMAGES=$(shell ls ${IMAGESDIR}/*.png | sed 's/\.png/.eps/g')
[326]11
[401]12all: $(TARGET).ps $(TARGET).pdf $(TARGET)/index.html $(TARGET).txt $(TARGET).html $(TARGET).rtf
[331]13
[338]14${IMAGESDIR}/%.eps: ${IMAGESDIR}/%.png
[331]15 @echo "Converting $< to $@"
16 @convert $< $@
[326]17
[327]18$(TARGET).txt: $(SRC)
[331]19 @echo ""
20 @echo "Generating doc in TXT format"
21 @echo "----------------------------"
22 @docbook2txt $(TARGET).sgml
[326]23
[327]24$(TARGET).ps: $(SRC) $(DSL) $(IMAGES)
[331]25 @echo ""
26 @echo "Generating doc in PostScript format"
27 @echo "-----------------------------------"
28 @docbook2ps -d $(TARGET).dsl'#print' $(TARGET).sgml
[326]29
30$(TARGET)/index.html: $(SRC) $(DSL) $(IMAGES)
[331]31 @echo ""
32 @echo "Generating all HTML pages"
33 @echo "-------------------------"
34 @rm -fr $(TARGET)
35 @docbook2html -d $(TARGET).dsl'#html' -o $(TARGET) $(TARGET).sgml
[326]36
37$(TARGET).html: $(SRC) $(DSL) $(IMAGES)
[331]38 @echo ""
39 @echo "Generating doc in HTML format"
40 @echo "-----------------------------"
41 @docbook2html -u -d $(TARGET).dsl'#txt' $(TARGET).sgml
[326]42
[327]43$(TARGET).pdf: $(SRC) $(DSL) $(IMAGES)
[331]44 @echo ""
45 @echo "Generating doc in PDF format"
46 @echo "----------------------------"
[3138]47 @ln -s /var/lib/texmf/web2c/pdfetex/pdfjadetex.fmt .
[331]48 @docbook2pdf -d $(TARGET).dsl'#pdf' $(TARGET).sgml
[326]49
[327]50$(TARGET).rtf: $(SRC) $(DSL) $(IMAGES)
[331]51 @echo ""
52 @echo "Generating doc in RTF format"
53 @echo "----------------------------"
54 @docbook2rtf -d $(TARGET).dsl'#print' $(TARGET).sgml
[326]55
56clean:
[331]57 @echo ""
[401]58 @echo "Cleaning up the documentation directory for the Howto"
[331]59 @echo ""
60 @rm -fr $(TARGET).{aux,log,out,tex,dvi,pdf,ps,txt,rtf,html} $(TARGET)
[338]61
62install: all
63 @echo ""
[401]64 @echo "Delivering mondorescue howto"
[338]65 @echo ""
[541]66 @if [ "${INSTALLDIR}" != "" ]; then mkdir -p ${INSTALLDIR} ; cp -a $(TARGET).{html,pdf,ps,txt,rtf} $(TARGET) ${INSTALLDIR} ; cp -a ${IMAGESDIR} ${INSTALLDIR}/$(TARGET) ; else echo "No INSTALLDIR specified aborting install"; fi
Note: See TracBrowser for help on using the repository browser.