Xdmx: build all man pages using XORG_MANPAGE_SECTIONS
Use standard directory and makefile. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
9bd9d550a0
commit
c86f7c2b8e
|
@ -2239,11 +2239,13 @@ hw/xfree86/utils/man/Makefile
|
||||||
hw/xfree86/utils/cvt/Makefile
|
hw/xfree86/utils/cvt/Makefile
|
||||||
hw/xfree86/utils/gtf/Makefile
|
hw/xfree86/utils/gtf/Makefile
|
||||||
hw/dmx/config/Makefile
|
hw/dmx/config/Makefile
|
||||||
|
hw/dmx/config/man/Makefile
|
||||||
hw/dmx/doc/Makefile
|
hw/dmx/doc/Makefile
|
||||||
hw/dmx/examples/Makefile
|
hw/dmx/examples/Makefile
|
||||||
hw/dmx/input/Makefile
|
hw/dmx/input/Makefile
|
||||||
hw/dmx/glxProxy/Makefile
|
hw/dmx/glxProxy/Makefile
|
||||||
hw/dmx/Makefile
|
hw/dmx/Makefile
|
||||||
|
hw/dmx/man/Makefile
|
||||||
hw/vfb/Makefile
|
hw/vfb/Makefile
|
||||||
hw/vfb/man/Makefile
|
hw/vfb/man/Makefile
|
||||||
hw/xnest/Makefile
|
hw/xnest/Makefile
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
SUBDIRS = input config examples doc
|
SUBDIRS = input config examples doc man
|
||||||
bin_PROGRAMS = Xdmx
|
bin_PROGRAMS = Xdmx
|
||||||
|
|
||||||
if XINERAMA
|
if XINERAMA
|
||||||
|
@ -85,28 +85,5 @@ Xdmx_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
|
||||||
Xdmx_DEPENDENCIES= $(XDMX_LIBS)
|
Xdmx_DEPENDENCIES= $(XDMX_LIBS)
|
||||||
Xdmx_LDADD = $(XDMX_LIBS) $(XDMX_SYS_LIBS) $(XSERVER_SYS_LIBS)
|
Xdmx_LDADD = $(XDMX_LIBS) $(XDMX_SYS_LIBS) $(XSERVER_SYS_LIBS)
|
||||||
|
|
||||||
# Man page
|
|
||||||
appmandir = $(APP_MAN_DIR)
|
|
||||||
|
|
||||||
appman_PRE = Xdmx.man
|
|
||||||
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
|
|
||||||
|
|
||||||
CLEANFILES = $(appman_DATA)
|
|
||||||
|
|
||||||
# Strings to replace in man pages
|
|
||||||
XORGRELSTRING = @PACKAGE_STRING@
|
|
||||||
XORGMANNAME = X Version 11
|
|
||||||
|
|
||||||
MAN_SUBSTS = \
|
|
||||||
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
|
||||||
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g'
|
|
||||||
|
|
||||||
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
|
||||||
|
|
||||||
.man.$(APP_MAN_SUFFIX):
|
|
||||||
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
|
||||||
|
|
||||||
EXTRA_DIST = $(appman_PRE)
|
|
||||||
|
|
||||||
relink:
|
relink:
|
||||||
$(AM_V_at)rm -f Xdmx$(EXEEXT) && $(MAKE) Xdmx$(EXEEXT)
|
$(AM_V_at)rm -f Xdmx$(EXEEXT) && $(MAKE) Xdmx$(EXEEXT)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
SUBDIRS = man
|
||||||
|
|
||||||
noinst_LIBRARIES = libdmxconfig.a
|
noinst_LIBRARIES = libdmxconfig.a
|
||||||
|
|
||||||
LIBSRCS = parser.y \
|
LIBSRCS = parser.y \
|
||||||
|
@ -53,26 +55,7 @@ dmxtodmx_DEPENDENCIES = libdmxconfig.a
|
||||||
dmxtodmx_SOURCES = dmxtodmx.c
|
dmxtodmx_SOURCES = dmxtodmx.c
|
||||||
dmxtodmx_LDADD = -L. -ldmxconfig
|
dmxtodmx_LDADD = -L. -ldmxconfig
|
||||||
|
|
||||||
appmandir = $(APP_MAN_DIR)
|
|
||||||
|
|
||||||
appman_PRE = xdmxconfig.man vdltodmx.man dmxtodmx.man
|
|
||||||
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
|
|
||||||
|
|
||||||
CLEANFILES = $(appman_DATA)
|
|
||||||
|
|
||||||
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
|
||||||
|
|
||||||
# Strings to replace in man pages
|
|
||||||
XORGRELSTRING = @PACKAGE_STRING@
|
|
||||||
XORGMANNAME = X Version 11
|
|
||||||
|
|
||||||
MAN_SUBSTS = -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|'
|
|
||||||
|
|
||||||
.man.$(APP_MAN_SUFFIX):
|
|
||||||
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
$(appman_PRE) \
|
|
||||||
test-a.in test-a.out \
|
test-a.in test-a.out \
|
||||||
test-b.in test-b.out \
|
test-b.in test-b.out \
|
||||||
test-c.in test-c.out \
|
test-c.in test-c.out \
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
appmandir = $(APP_MAN_DIR)
|
||||||
|
appman_PRE = xdmxconfig.man vdltodmx.man dmxtodmx.man
|
||||||
|
appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
|
||||||
|
|
||||||
|
EXTRA_DIST = $(appman_PRE)
|
||||||
|
CLEANFILES = $(appman_DATA)
|
||||||
|
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
||||||
|
|
||||||
|
.man.$(APP_MAN_SUFFIX):
|
||||||
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
|
@ -0,0 +1,10 @@
|
||||||
|
appmandir = $(APP_MAN_DIR)
|
||||||
|
appman_PRE = Xdmx.man
|
||||||
|
appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
|
||||||
|
|
||||||
|
EXTRA_DIST = $(appman_PRE)
|
||||||
|
CLEANFILES = $(appman_DATA)
|
||||||
|
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
||||||
|
|
||||||
|
.man.$(APP_MAN_SUFFIX):
|
||||||
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
Loading…
Reference in New Issue