Makefile.am revision 629baa8c
1629baa8cSmrg#
2629baa8cSmrg# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
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
24629baa8cSmrgappmandir = $(APP_MAN_DIR)
25629baa8cSmrgappman_PRE = xdm.man
26629baa8cSmrgappman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
27629baa8cSmrg
28629baa8cSmrgxdmlmandir = $(APP_MAN_DIR)
29629baa8cSmrgxdmlman_PRE = xdmshell.man
30629baa8cSmrg
31629baa8cSmrgif INSTALL_XDMSHELL
32629baa8cSmrgxdmlman_DATA = $(xdmlman_PRE:man=$(APP_MAN_SUFFIX))
33629baa8cSmrgelse
34629baa8cSmrgnoinst_DATA = $(xdmlman_PRE:man=$(APP_MAN_SUFFIX))
35629baa8cSmrgendif
36629baa8cSmrg
37629baa8cSmrgEXTRA_DIST = $(appman_PRE) $(xdmlman_PRE)
38629baa8cSmrgCLEANFILES = $(appman_DATA) $(xdmlman_DATA) $(noinst_DATA)
39629baa8cSmrgSUFFIXES = .$(APP_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
54629baa8cSmrg.man.$(APP_MAN_SUFFIX):
55629baa8cSmrg	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
56