markam/doc/Makefile

73 lines
2 KiB
Makefile
Raw Permalink Normal View History

2013-02-16 12:22:53 +01:00
# 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
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