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/>.
|
2013-01-06 14:36:51 +01:00
|
|
|
DESTDIR ?= /usr/local
|
2013-01-06 15:52:33 +01:00
|
|
|
INSTALL_INFO = install-info
|
|
|
|
TEXI2PDF = texi2pdf
|
|
|
|
DVIPS = dvips
|
2013-01-06 14:36:51 +01:00
|
|
|
|
2013-01-06 15:30:50 +01:00
|
|
|
.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
|
2013-01-06 14:36:51 +01:00
|
|
|
|
|
|
|
install: markam.info
|
2013-01-06 15:52:33 +01:00
|
|
|
$(INSTALL_DATA) markam.info "$(DESTDIR)/share/info/markam.info"
|
|
|
|
$(INSTALL_INFO) --dir-file="$(DESTDIR)/share/info/dir" \
|
2013-01-06 14:36:51 +01:00
|
|
|
"$(DESTDIR)/share/info/markam.info"
|
|
|
|
|
2013-01-06 15:59:16 +01:00
|
|
|
install-strip:
|
|
|
|
$(MAKE) install
|
|
|
|
|
2013-01-06 15:30:50 +01:00
|
|
|
uninstall:
|
2013-01-06 15:52:33 +01:00
|
|
|
$(INSTALL_INFO) --dir-file="$(DESTDIR)/share/info/dir" \
|
2013-01-06 15:30:50 +01:00
|
|
|
--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/"
|
|
|
|
|
2013-01-06 15:10:37 +01:00
|
|
|
install-dvi: markam.dvi
|
2013-01-06 15:52:33 +01:00
|
|
|
$(INSTALL_DATA) markam.dvi \
|
2013-01-06 15:10:37 +01:00
|
|
|
"$(DESTDIR)/share/doc/markam/dvi/markam.dvi"
|
|
|
|
|
|
|
|
install-pdf: markam.pdf
|
2013-01-06 15:52:33 +01:00
|
|
|
$(INSTALL_DATA) markam.pdf \
|
2013-01-06 15:10:37 +01:00
|
|
|
"$(DESTDIR)/share/doc/markam/pdf/markam.pdf"
|
|
|
|
|
|
|
|
install-ps: markam.ps
|
2013-01-06 15:52:33 +01:00
|
|
|
$(INSTALL_DATA) markam.ps \
|
2013-01-06 15:10:37 +01:00
|
|
|
"$(DESTDIR)/share/doc/markam/ps/markam.ps"
|
|
|
|
|
2012-12-29 16:54:16 +01:00
|
|
|
markam.info: markam.texi
|
2013-01-06 15:10:37 +01:00
|
|
|
|
|
|
|
html: markam.texi
|
2013-01-06 15:52:33 +01:00
|
|
|
$(MAKEINFO) --html markam.texi -o html
|
2013-01-06 15:10:37 +01:00
|
|
|
|
|
|
|
dvi: markam.dvi
|
|
|
|
pdf: markam.pdf
|
|
|
|
ps: markam.ps
|
|
|
|
|
|
|
|
markam.dvi: markam.texi
|
2013-01-06 15:52:33 +01:00
|
|
|
$(TEXI2DVI) markam.texi
|
2013-01-06 15:10:37 +01:00
|
|
|
|
|
|
|
markam.pdf: markam.texi
|
2013-01-06 15:52:33 +01:00
|
|
|
$(TEXI2PDF) markam.texi
|
2013-01-06 15:10:37 +01:00
|
|
|
|
|
|
|
markam.ps: markam.dvi
|
2013-01-06 15:52:33 +01:00
|
|
|
$(DVIPS) markam.dvi
|