Commit b9464aa5 authored by Kevin E Martin's avatar Kevin E Martin

Add configure option to install makestrs and its manpage.

Add makestrs man page.
parent 6be3ca4f
2005-12-10 Kevin E. Martin <kem-at-freedesktop-dot-org>
* configure.ac:
Add configure option to install makestrs and its manpage.
* util/Makefile.am:
Add makestrs man page.
2005-12-07 Kevin E. Martin <kem-at-freedesktop-dot-org>
* configure.ac:
......
......@@ -55,6 +55,12 @@ if test "x$XKB" = "xyes" ; then
AC_DEFINE(XKB, 1, [Define to 1 to use XKB for keysym resolution.])
fi
AC_ARG_ENABLE(install-makestrs,
AC_HELP_STRING([--disable-install-makestrs], [Disable installing makestrs]),
INSTALL_MAKESTRS="$enableval",
INSTALL_MAKESTRS="yes")
AM_CONDITIONAL([INSTALL_MAKESTRS], [test "x$INSTALL_MAKESTRS" = xyes])
# Replaces XFileSearchPathDefault from Imake configs
XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S'
......
if INSTALL_MAKESTRS
bin_PROGRAMS = makestrs
else
noinst_PROGRAMS = makestrs
endif
EXTRA_DIST = \
Shell.ht \
......@@ -7,3 +11,33 @@ EXTRA_DIST = \
string.list
makestrs_CFLAGS = $(XT_CFLAGS)
makestrs_SOURCES = makestrs.c
# Man page
appmandir = $(APP_MAN_DIR)
appman_PRE = makestrs.man
if INSTALL_MAKESTRS
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
else
noinst_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
endif
EXTRA_DIST += $(appman_PRE)
CLEANFILES = $(appman_DATA)
SED = sed
# Strings to replace in man pages
XORGRELSTRING = @PACKAGE_STRING@
XORGMANNAME = X Version 11
MAN_SUBSTS = \
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|'
SUFFIXES = .$(APP_MAN_SUFFIX) .man
.man.$(APP_MAN_SUFFIX):
sed $(MAN_SUBSTS) < $< > $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment