doc: Define PACKAGE_TARNAME, part of the default docdir.
authorMatt Birkholz <matt@birchwood-abbey.net>
Wed, 17 May 2017 22:11:35 +0000 (15:11 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Wed, 17 May 2017 22:11:35 +0000 (15:11 -0700)
Also define PROJECT to make it easier to change the project name.

doc/Makefile.in
doc/configure.ac
doc/make-common.in

index 3bd9c2b221dcd0358e24b34b0a8fb91e43046dfd..937d0e9f49c4718fb29a94d08c86b43d6c7acd56 100644 (file)
@@ -47,6 +47,9 @@ includedir = @includedir@
 docdir = @docdir@
 oldincludedir = /usr/include
 
+PACKAGE_TARNAME = @PROJECT@
+PROJECT = @PROJECT@
+
 DESTDIR =
 top_builddir = .
 
@@ -117,7 +120,7 @@ install-info-gz install-info:
 
 install-man:
        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
-       $(INSTALL_DATA) mit-scheme.1 $(DESTDIR)$(mandir)/man1/.
+       $(INSTALL_DATA) ${PROJECT}.1 $(DESTDIR)$(mandir)/man1/.
 
 install-html:
        $(mkinstalldirs) $(DESTDIR)$(htmldir)
index 5164662f520f0cba621ed2e18d1d98265d0d12b0..efb269bd96deb21128fd3b2e89cd3863f2b4e686 100644 (file)
@@ -39,6 +39,7 @@ AC_PROG_LN_S
 AC_PROG_MAKE_SET
 AC_CHECK_PROG([INSTALL_INFO_PROG], [install-info], [install-info], [true])
 
+PROJECT=mit-scheme
 TARGETS=
 INST_TARGETS=
 
@@ -51,7 +52,6 @@ elif test "${enable_html:-yes}" != "yes"; then
 fi
 test "${htmldir}" = "" || TARGETS="${TARGETS} \$(TARGET_ROOT)/index.html"
 test "${htmldir}" = "" || INST_TARGETS="${INST_TARGETS} install-html"
-AC_SUBST([htmldir])
 
 AC_ARG_ENABLE([pdf],
        [AC_HELP_STRING([--enable-pdf], [generate PDF documentation])])
@@ -62,7 +62,6 @@ elif test "${enable_pdf:-yes}" != "yes"; then
 fi
 test "${pdfdir}" = "" || TARGETS="${TARGETS} \$(TARGET_ROOT).pdf"
 test "${pdfdir}" = "" || INST_TARGETS="${INST_TARGETS} install-pdf"
-AC_SUBST([pdfdir])
 
 AC_ARG_ENABLE([ps],
        [AC_HELP_STRING([--enable-ps], [generate Postscript documentation])])
@@ -73,8 +72,8 @@ elif test "${enable_ps}" != "yes"; then
 fi
 test "${psdir}" = "" || TARGETS="${TARGETS} \$(TARGET_ROOT).ps"
 test "${psdir}" = "" || INST_TARGETS="${INST_TARGETS} install-ps"
-AC_SUBST([psdir])
 
+AC_SUBST([PROJECT])
 AC_SUBST([TARGETS])
 AC_SUBST([INST_TARGETS])
 
index 91724bb48dbe8949b2251675b56cf68054003f12..ef0c7fc7045547478e97bc40bd109f4c490fd6a2 100644 (file)
@@ -37,11 +37,14 @@ sysconfdir = @sysconfdir@
 sharedstatedir = @sharedstatedir@
 localstatedir = @localstatedir@
 libdir = @libdir@
+docdir = @docdir@
 infodir = @infodir@
 mandir = @mandir@
 includedir = @includedir@
 oldincludedir = /usr/include
 
+PROJECT = @PROJECT@
+
 DESTDIR =
 top_builddir = .