Changeset 399 in MondoRescue for branches/stable/documentation/Makefile


Ignore:
Timestamp:
Feb 17, 2006, 1:54:07 PM (14 years ago)
Author:
bcornec
Message:
  • man pages reviewed
  • pdf, ps, txt and html generated from man pages and published on the Web
  • Bob is in the thanks page for 2nd DNS server
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/documentation/Makefile

    r339 r399  
    1010IMAGES=$(shell ls ${IMAGESDIR}/*.png | sed 's/\.png/.eps/g')
    1111
    12 all: $(TARGET).ps $(TARGET).pdf $(TARGET)/index.html $(TARGET).txt $(TARGET).html $(TARGET).rtf
     12#
     13# Man pages handling
     14#
     15MRMPDIR=../mondo/mondo/mondorestore
     16MRMPNAM=mondorestore.8
     17MAMPDIR=../mondo/mondo/mondoarchive
     18MAMPNAM=mondoarchive.8
     19MIMPDIR=../mindi
     20MIMPNAM=mindi.8
     21
     22all: all-howto all-man
     23
     24all-howto: $(TARGET).ps $(TARGET).pdf $(TARGET)/index.html $(TARGET).txt $(TARGET).html $(TARGET).rtf
     25
     26all-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 $< > $@
    1387
    1488${IMAGESDIR}/%.eps: ${IMAGESDIR}/%.png
Note: See TracChangeset for help on using the changeset viewer.