markam/doc/Makefile

72 lines
2 KiB
Makefile

# Copyright (C) 2012, 2013 Tom Willemsen
#
# This file is part of Markam
#
# Markam is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Markam is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Markam. If not, see <http://www.gnu.org/licenses/>.
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
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"
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"
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