configure.ac: use autoconf to generate manpage

Instead of doing separate sed call, use autoconf output.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2026-01-08 17:15:36 +01:00
committed by Enrico Weigelt
parent b3c73e8149
commit 4a216b5525
4 changed files with 11 additions and 42 deletions

1
.gitignore vendored
View File

@@ -43,6 +43,7 @@ stamp-h?
symlink-tree
texinfo.tex
ylwrap
man/joystick.man
# Do not edit the following section
# Edit Compile Debug Document Distribute

View File

@@ -95,8 +95,7 @@ if test "x$evdev_backend" = xyes; then
AC_DEFINE(EVDEV_BACKEND, 1, [Compile Linux evdev backend])
fi
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile config/Makefile])
AC_OUTPUT
AC_OUTPUT([Makefile src/Makefile man/Makefile man/joystick.man config/Makefile])
AS_ECHO()
AS_ECHO("Building Linux joystick backend: $linux_backend")

View File

@@ -1,38 +1,7 @@
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice (including the next
# paragraph) shall be included in all copies or substantial portions of the
# Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
drivermandir = $(DRIVER_MAN_DIR)
driverman_PRE = joystick.man
driverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
EXTRA_DIST = joystick.man
drivermandir = @DRIVER_MAN_DIR@
driverman_DATA = joystick.@DRIVER_MAN_SUFFIX@
CLEANFILES = $(driverman_DATA)
SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
.man.$(DRIVER_MAN_SUFFIX):
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
cp $< $@

View File

@@ -1,6 +1,6 @@
.\" shorthand for double quote that works everywhere.
.ds q \N'34'
.TH JOYSTICK __drivermansuffix__ 2012-10-03 __vendorversion__
.TH JOYSTICK @DRIVER_MAN_SUFFIX@ 2012-10-03 "@PACKAGE_STRING@" "X Version 11"
.SH NAME
joystick \- XLibre input driver for using a joystick as a mouse
.SH SYNOPSIS
@@ -63,7 +63,7 @@ There is no support for
at the moment.
.SH CONFIGURATION DETAILS
Please refer to
.BR xorg.conf (__filemansuffix__)
.BR xorg.conf (@FILE_MAN_SUFFIX@)
for general configuration details.
This section only covers configuration details specific to this driver.
.PP
@@ -441,11 +441,11 @@ An example hal policy file is still provided in
to be placed in
.IR /etc/hal/fdi/policy .
.SH "SEE ALSO"
.BR XLibre (__appmansuffix__),
.BR xorg.conf (__filemansuffix__),
.BR XLibre (@APP_MAN_SUFFIX@),
.BR xorg.conf (@FILE_MAN_SUFFIX@),
.BR xorg.conf.d (5),
.BR Xserver (__appmansuffix__),
.BR X (__miscmansuffix__),
.BR Xserver (@APP_MAN_SUFFIX@),
.BR X (@MISC_MAN_SUFFIX@),
.BR xmodmap (1)
.SH AUTHORS
Sascha Hlusiak (2007-2012),