1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
#
# Makefile for HTMLDOC documentation files.
#
# Copyright © 2011-2018 by Michael R Sweet.
# Copyright © 1997-2010 by Easy Software Products.
#
# This program is free software. Distribution and use rights are outlined in
# the file "COPYING".
#
#
# Include common definitions...
#
include ../Makedefs
#
# Documentation files...
#
SOURCES = 1-intro.html \
2-using.html \
3-cmdref.html \
4-htmlref.html \
5-mdref.html \
a-license.html \
b-book.html
DOCUMENTS = htmldoc.epub htmldoc.html htmldoc.pdf htmldoc.ps
DOCFILES = help.html htmldoc.pdf htmldoc.html htmldoc.ps
HTMLDOC = ../htmldoc/htmldoc$(EXEEXT) --datadir .. --strict
#
# Make everything...
#
all: $(DOCUMENTS)
#
# Install everything...
#
install: $(DOCUMENTS)
$(INSTALL_DIR) $(BUILDROOT)$(datadir)/doc/htmldoc;
for file in $(DOCFILES); do \
$(INSTALL_DATA) $$file $(BUILDROOT)$(datadir)/doc/htmldoc; \
done
$(INSTALL_DIR) $(BUILDROOT)$(mandir)/man1;
$(INSTALL_MAN) htmldoc.man $(BUILDROOT)$(mandir)/man1/htmldoc.1
#
# Clean out document files...
#
clean:
$(RM) $(DOCUMENTS)
#
# htmldoc program (dummy rule)
#
../htmldoc/htmldoc$(EXEEXT):
echo Rebuilding documentation...
#
# htmldoc.d (directory)
#
.PHONY: htmldoc.d
htmldoc.d: $(SOURCES) ../htmldoc/htmldoc$(EXEEXT)
echo Formatting htmldoc.d...
if test -d htmldoc.d; then \
$(RM) -r htmldoc.d; \
fi
$(MKDIR) htmldoc.d
$(VALGRIND) $(HTMLDOC) --batch htmldoc.book -t htmlsep -d htmldoc.d
#
# htmldoc.epub
#
htmldoc.epub: $(SOURCES) ../htmldoc/htmldoc$(EXEEXT)
echo Formatting htmldoc.epub...
$(VALGRIND) $(HTMLDOC) --batch htmldoc.book --titleimage htmldoc-cover.png -f htmldoc.epub
#
# htmldoc.html
#
htmldoc.html: $(SOURCES) ../htmldoc/htmldoc$(EXEEXT)
echo Formatting htmldoc.html...
$(VALGRIND) $(HTMLDOC) --batch htmldoc.book -f htmldoc.html
#
# htmldoc.pdf
#
htmldoc.pdf: $(SOURCES) ../htmldoc/htmldoc$(EXEEXT)
echo Formatting htmldoc.pdf...
$(VALGRIND) $(HTMLDOC) --batch htmldoc.book -f htmldoc.pdf
#
# htmldoc.ps
#
htmldoc.ps: $(SOURCES) ../htmldoc/htmldoc$(EXEEXT)
echo Formatting htmldoc.ps...
$(VALGRIND) $(HTMLDOC) --batch htmldoc.book -f htmldoc.ps
|