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: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
|