Add more documentation formats to Makefile

`dvi', `pdf' and `ps' can be compiled/installed by explicitly
specifying `make FORMAT' or `make install-FORMAT'.
This commit is contained in:
Tom Willemsen 2013-01-06 15:10:37 +01:00
parent 58a7c046d2
commit 759b8b0cf9
4 changed files with 60 additions and 2 deletions

View file

@ -13,3 +13,21 @@ $(dirs):
$(install-dirs): install-%: $(install-dirs): install-%:
$(MAKE) -C $*/ install $(MAKE) -C $*/ install
dvi:
$(MAKE) -C doc/ dvi
pdf:
$(MAKE) -C doc/ pdf
ps:
$(MAKE) -C doc/ ps
install-dvi:
$(MAKE) -C doc/ install-dvi
install-pdf:
$(MAKE) -C doc/ install-pdf
install-ps:
$(MAKE) -C doc/ install-ps

12
doc/.gitignore vendored
View file

@ -1 +1,13 @@
*.info *.info
*.aux
*.cp
*.dvi
*.fn
*.ky
*.log
*.pdf
*.pg
*.ps
*.toc
*.tp
*.vr

View file

@ -1,6 +1,6 @@
DESTDIR ?= /usr/local DESTDIR ?= /usr/local
.PHONY: all .PHONY: all html dvi pdf ps
all: markam.info all: markam.info
@ -9,4 +9,32 @@ install: markam.info
install-info --dir-file="$(DESTDIR)/share/info/dir" \ install-info --dir-file="$(DESTDIR)/share/info/dir" \
"$(DESTDIR)/share/info/markam.info" "$(DESTDIR)/share/info/markam.info"
install-dvi: markam.dvi
install -Dm 655 markam.dvi \
"$(DESTDIR)/share/doc/markam/dvi/markam.dvi"
install-pdf: markam.pdf
install -Dm 655 markam.pdf \
"$(DESTDIR)/share/doc/markam/pdf/markam.pdf"
install-ps: markam.ps
install -Dm 655 markam.ps \
"$(DESTDIR)/share/doc/markam/ps/markam.ps"
markam.info: markam.texi markam.info: markam.texi
html: markam.texi
makeinfo --html markam.texi -o html
dvi: markam.dvi
pdf: markam.pdf
ps: markam.ps
markam.dvi: markam.texi
texi2dvi markam.texi
markam.pdf: markam.texi
texi2pdf markam.texi
markam.ps: markam.dvi
dvips markam.dvi

View file

@ -29,7 +29,7 @@ The document was typeset with
@titlepage @titlepage
@title markam User Manual @title markam User Manual
@subtitle The user manual for markam @subtitle The user manual for markam
@author Tom Willemsen <tom@ryuslash.org> @author Tom Willemsen
@page @page
@vskip 0pt plus 1filll @vskip 0pt plus 1filll
@insertcopying @insertcopying