markam/doc/Makefile
Tom Willemsen 759b8b0cf9 Add more documentation formats to Makefile
`dvi', `pdf' and `ps' can be compiled/installed by explicitly
specifying `make FORMAT' or `make install-FORMAT'.
2013-01-06 15:10:37 +01:00

40 lines
814 B
Makefile

DESTDIR ?= /usr/local
.PHONY: all html dvi pdf ps
all: markam.info
install: markam.info
install -Dm 655 markam.info "$(DESTDIR)/share/info/markam.info"
install-info --dir-file="$(DESTDIR)/share/info/dir" \
"$(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
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