markam/doc/Makefile

57 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

DESTDIR ?= /usr/local
INSTALL_INFO = install-info
TEXI2PDF = texi2pdf
DVIPS = dvips
.PHONY: all html dvi pdf ps install uninstall install-dvi install-pdf \
install-ps
2012-12-28 22:55:16 +01:00
2012-12-29 16:54:16 +01:00
all: markam.info
install: markam.info
$(INSTALL_DATA) markam.info "$(DESTDIR)/share/info/markam.info"
$(INSTALL_INFO) --dir-file="$(DESTDIR)/share/info/dir" \
"$(DESTDIR)/share/info/markam.info"
2013-01-06 15:59:16 +01:00
install-strip:
$(MAKE) install
uninstall:
$(INSTALL_INFO) --dir-file="$(DESTDIR)/share/info/dir" \
--delete "$(DESTDIR)/share/info/markam.info"
rm -f "$(DESTDIR)/share/info/markam.info"
rm -f "$(DESTDIR)/share/doc/markam/dvi/markam.dvi"
rm -f "$(DESTDIR)/share/doc/markam/pdf/markam.pdf"
rm -f "$(DESTDIR)/share/doc/markam/ps/markam.ps"
rm -rf "$(DESTDIR)/share/doc/markam/html/"
install-dvi: markam.dvi
$(INSTALL_DATA) markam.dvi \
"$(DESTDIR)/share/doc/markam/dvi/markam.dvi"
install-pdf: markam.pdf
$(INSTALL_DATA) markam.pdf \
"$(DESTDIR)/share/doc/markam/pdf/markam.pdf"
install-ps: markam.ps
$(INSTALL_DATA) markam.ps \
"$(DESTDIR)/share/doc/markam/ps/markam.ps"
2012-12-29 16:54:16 +01:00
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