Changeset 401 in MondoRescue for branches/stable/documentation/Makefile.howto


Ignore:
Timestamp:
Feb 17, 2006, 3:37:04 PM (18 years ago)
Author:
bcornec
Message:
  • Integrate some SuSE patches and spec tips
  • all the doc is now under documentation (man pages, pdf, generated doc)
  • delivery process adapted consequently
File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/stable/documentation/Makefile.howto

    r399 r401  
    11#
    2 # Makefile for mondorescue documentation build
     2# Makefile for mondorescue howto
    33#
    44# $Id$
     
    1010IMAGES=$(shell ls ${IMAGESDIR}/*.png | sed 's/\.png/.eps/g')
    1111
    12 #
    13 # Man pages handling
    14 #
    15 MRMPDIR=../mondo/mondo/mondorestore
    16 MRMPNAM=mondorestore.8
    17 MAMPDIR=../mondo/mondo/mondoarchive
    18 MAMPNAM=mondoarchive.8
    19 MIMPDIR=../mindi
    20 MIMPNAM=mindi.8
    21 
    22 all: all-howto all-man
    23 
    24 all-howto: $(TARGET).ps $(TARGET).pdf $(TARGET)/index.html $(TARGET).txt $(TARGET).html $(TARGET).rtf
    25 
    26 all-man: .all-man-html .all-man-pdf .all-man-txt
    27 
    28 .all-man-html: $(MRMPNAM).html $(MAMPNAM).html $(MIMPNAM).html
    29     @echo ""
    30     @echo "Generating Man pages in HTML format"
    31     @echo "-----------------------------------"
    32     @touch .all-man-html
    33 
    34 .all-man-pdf: $(MRMPNAM).pdf $(MAMPNAM).pdf $(MIMPNAM).pdf
    35     @echo ""
    36     @echo "Generating Man pages in PDF and PS format"
    37     @echo "-----------------------------------------"
    38     @touch .all-man-pdf
    39 
    40 .all-man-txt: $(MRMPNAM).txt $(MAMPNAM).txt $(MIMPNAM).txt
    41     @echo ""
    42     @echo "Generating Man pages in TXT format"
    43     @echo "----------------------------------"
    44     @touch .all-man-txt
    45 
    46 $(MRMPNAM).html: $(MRMPDIR)/$(MRMPNAM)
    47     @man2html -r $< > $@
    48 
    49 $(MAMPNAM).html: $(MAMPDIR)/$(MAMPNAM)
    50     @man2html -r $< > $@
    51 
    52 $(MIMPNAM).html: $(MIMPDIR)/$(MIMPNAM)
    53     @man2html -r $< > $@
    54 
    55 $(MRMPNAM).ps: $(MRMPDIR)/$(MRMPNAM)
    56     @man2dvi $< > $(MRMPNAM).dvi
    57     @dvips $(MRMPNAM).dvi -o $@
    58     @rm -f $(MRMPNAM).dvi
    59 
    60 $(MAMPNAM).ps: $(MAMPDIR)/$(MAMPNAM)
    61     @man2dvi $< > $(MAMPNAM).dvi
    62     @dvips $(MAMPNAM).dvi -o $@
    63     @rm -f $(MAMPNAM).dvi
    64 
    65 $(MIMPNAM).ps: $(MIMPDIR)/$(MIMPNAM)
    66     @man2dvi $< > $(MIMPNAM).dvi
    67     @dvips $(MIMPNAM).dvi -o $@
    68     @rm -f $(MIMPNAM).dvi
    69 
    70 $(MRMPNAM).pdf: $(MRMPNAM).ps
    71     @ps2pdf $<
    72 
    73 $(MAMPNAM).pdf: $(MAMPNAM).ps
    74     @ps2pdf $<
    75 
    76 $(MIMPNAM).pdf: $(MIMPNAM).ps
    77     @ps2pdf $<
    78 
    79 $(MRMPNAM).txt: $(MRMPDIR)/$(MRMPNAM)
    80     @nroff -man $< > $@
    81 
    82 $(MAMPNAM).txt: $(MAMPDIR)/$(MAMPNAM)
    83     @nroff -man $< > $@
    84 
    85 $(MIMPNAM).txt: $(MIMPDIR)/$(MIMPNAM)
    86     @nroff -man $< > $@
     12all: $(TARGET).ps $(TARGET).pdf $(TARGET)/index.html $(TARGET).txt $(TARGET).html $(TARGET).rtf
    8713
    8814${IMAGESDIR}/%.eps: ${IMAGESDIR}/%.png
     
    12955clean:
    13056    @echo ""
    131     @echo "Cleaning up the documentation directory"
     57    @echo "Cleaning up the documentation directory for the Howto"
    13258    @echo ""
    13359    @rm -fr $(TARGET).{aux,log,out,tex,dvi,pdf,ps,txt,rtf,html} $(TARGET)
     
    13561install: all
    13662    @echo ""
    137     @echo "Delivering mondorescue documentation"
     63    @echo "Delivering mondorescue howto"
    13864    @echo ""
    13965    @if [ "${INSTALLDIR}" != "" ]; then 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 TracChangeset for help on using the changeset viewer.