1629baa8cSmrg#
24901b09eSmrg# Copyright (c) 2010, Oracle and/or its affiliates.
3629baa8cSmrg#
4629baa8cSmrg# Permission is hereby granted, free of charge, to any person obtaining a
5629baa8cSmrg# copy of this software and associated documentation files (the "Software"),
6629baa8cSmrg# to deal in the Software without restriction, including without limitation
7629baa8cSmrg# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8629baa8cSmrg# and/or sell copies of the Software, and to permit persons to whom the
9629baa8cSmrg# Software is furnished to do so, subject to the following conditions:
10629baa8cSmrg#
11629baa8cSmrg# The above copyright notice and this permission notice (including the next
12629baa8cSmrg# paragraph) shall be included in all copies or substantial portions of the
13629baa8cSmrg# Software.
14629baa8cSmrg#
15629baa8cSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16629baa8cSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17629baa8cSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18629baa8cSmrg# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19629baa8cSmrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20629baa8cSmrg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21629baa8cSmrg# DEALINGS IN THE SOFTWARE.
22629baa8cSmrg#
23629baa8cSmrg
24b7d26471Smrgadminmandir = $(ADMIN_MAN_DIR)
25b7d26471Smrgadminman_PRE = xdm.man
26b7d26471Smrgadminman_DATA = $(adminman_PRE:man=$(ADMIN_MAN_SUFFIX))
27629baa8cSmrg
28b7d26471Smrgxdmlmandir = $(ADMIN_MAN_DIR)
29629baa8cSmrgxdmlman_PRE = xdmshell.man
30629baa8cSmrg
31629baa8cSmrgif INSTALL_XDMSHELL
32b7d26471Smrgxdmlman_DATA = $(xdmlman_PRE:man=$(ADMIN_MAN_SUFFIX))
33629baa8cSmrgelse
34b7d26471Smrgnoinst_DATA = $(xdmlman_PRE:man=$(ADMIN_MAN_SUFFIX))
35629baa8cSmrgendif
36629baa8cSmrg
37b7d26471SmrgEXTRA_DIST = $(adminman_PRE) $(xdmlman_PRE)
38b7d26471SmrgCLEANFILES = $(adminman_DATA) $(xdmlman_DATA) $(noinst_DATA)
39b7d26471SmrgSUFFIXES = .$(ADMIN_MAN_SUFFIX) .man
40629baa8cSmrg
41629baa8cSmrg# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
42629baa8cSmrgMAN_SUBSTS +=	-e 's|CHOOSERPATH|$(XDMLIBDIR)/chooser|g' \
43629baa8cSmrg		-e 's|XDMLOGDIR|$(XDMLOGDIR)|g' \
44629baa8cSmrg		-e 's|XDMDIR|$(XDMCONFIGDIR)|g' \
45629baa8cSmrg		-e 's|BINDIR|$(bindir)|g' \
46629baa8cSmrg		-e 's|XDMPIDDIR|$(XDMPIDDIR)|g' \
47629baa8cSmrg		-e 's|XDMXAUTHDIR|$(XDMXAUTHDIR)|g' \
48629baa8cSmrg		-e 's|DEF_USER_PATH|$(DEF_USER_PATH)|g' \
49629baa8cSmrg		-e 's|DEF_SYSTEM_PATH|$(DEF_SYSTEM_PATH)|g' \
50629baa8cSmrg		-e 's|DEF_GREETER_LIB|$(DEF_GREETER_LIB)|g' \
51629baa8cSmrg		-e 's|DEV_RANDOM|$(DEV_RANDOM)|g' \
52629baa8cSmrg		-e 's|ARC4_RANDOM|$(HAVE_ARC4RANDOM)|g'
53629baa8cSmrg
54b7d26471Smrg.man.$(ADMIN_MAN_SUFFIX):
55629baa8cSmrg	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
56