summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 0000000..4318c57
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,62 @@
+# Makefile for Screen documentation
+
+srcdir = .
+
+
+DESTDIR =
+
+prefix = /usr
+datarootdir = ${prefix}/share
+mandir = /usr/share/man
+infodir = /usr/share/info
+
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+MAKEINFO = makeinfo
+TEXI2DVI = texi2dvi
+TEXI2PDF = texi2pdf
+
+SHELL = /bin/sh
+
+all: screen.info
+
+dvi screen.dvi: screen.texinfo mostlyclean
+ $(TEXI2DVI) $(srcdir)/screen.texinfo
+
+pdf screen.pdf: screen.texinfo mostlyclean
+ $(TEXI2PDF) $(srcdir)/screen.texinfo
+
+info screen.info: screen.texinfo
+ @rm -f screen.info*
+ $(MAKEINFO) $(srcdir)/screen.texinfo -o screen.info
+
+install: installdirs
+ $(INSTALL_DATA) $(srcdir)/screen.1 $(DESTDIR)$(mandir)/man1/screen.1
+ -$(MAKE) screen.info
+ -if test -f screen.info; then d=.; else d=$(srcdir); fi; \
+ if test -f $$d/screen.info; then \
+ for f in $$d/screen.info*; do $(INSTALL_DATA) $$f $(DESTDIR)$(infodir);done; \
+ if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
+ install-info --info-dir=$(DESTDIR)$(infodir) $$d/screen.info; \
+ else true; fi; \
+ fi
+
+uninstall:
+ rm -f $(DESTDIR)$(mandir)/man1/screen.1
+ rm -f $(DESTDIR)$(infodir)/screen.info*
+
+installdirs:
+ $(srcdir)/../etc/mkinstalldirs $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(infodir)
+
+mostlyclean:
+ -rm -f *.cp *.cps *.fn *.fns *.ky *.kys *.pg *.tp *.vr
+ -rm -f *.log *.aux *.toc *~
+
+clean distclean clobber: mostlyclean
+ -rm -f *.dvi
+
+realclean: clean
+ -rm -f *.info*
+
+check installcheck:
+