Makefile.am revision cf2f63c2
1# 
2#  Copyright 2005  Red Hat, Inc.
3# 
4#  Permission to use, copy, modify, distribute, and sell this software and its
5#  documentation for any purpose is hereby granted without fee, provided that
6#  the above copyright notice appear in all copies and that both that
7#  copyright notice and this permission notice appear in supporting
8#  documentation, and that the name of Red Hat not be used in
9#  advertising or publicity pertaining to distribution of the software without
10#  specific, written prior permission.  Red Hat makes no
11#  representations about the suitability of this software for any purpose.  It
12#  is provided "as is" without express or implied warranty.
13# 
14#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20#  PERFORMANCE OF THIS SOFTWARE.
21
22bin_PROGRAMS = proxymngr
23
24CONFIG_DIR = $(sysconfdir)/X11/proxymngr
25
26AM_CFLAGS =						\
27	$(CWARNFLAGS)					\
28	$(PROXYMNGR_CFLAGS)				\
29	-DXVENDORNAME=\"The\ X\.Org\ Foundation\"	\
30	-DXORG_RELEASE=\"Release\ $(VERSION)\"		\
31	-DCONFIG_FILE=\"$(CONFIG_DIR)/proxymngr/pmconfig\"
32
33proxymngr_LDADD = $(PROXYMNGR_LIBS)
34
35proxymngr_SOURCES =	\
36        config.c \
37        config.h \
38        main.c \
39        pmdb.c \
40        pmdb.h \
41        pmint.h
42
43appman_PRE = \
44        proxymngr.man
45
46configdir = $(CONFIG_DIR)
47config_DATA = pmconfig
48
49pmconfig: pmconfig.cpp
50	$(AM_V_GEN)$(SED) -e s/LBXPROXY/`echo @LBXPROXY@ | sed -e s/\\\\//\\\\\\\\\\\\//g`/ < $(srcdir)/pmconfig.cpp > $@
51
52EXTRA_DIST = pmconfig.cpp
53CLEANFILES = pmconfig
54
55appmandir = $(APP_MAN_DIR)
56
57appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
58
59EXTRA_DIST += $(appman_PRE)
60CLEANFILES += $(appman_DATA)
61
62# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
63MAN_SUBSTS += -e 's|__configdir__|$(CONFIG_DIR)|g'
64
65SUFFIXES = .$(APP_MAN_SUFFIX) .man
66
67# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
68.man.$(APP_MAN_SUFFIX):
69	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
70
71EXTRA_DIST += ChangeLog
72MAINTAINERCLEANFILES = ChangeLog
73
74.PHONY: ChangeLog
75
76ChangeLog:
77	$(CHANGELOG_CMD)
78
79dist-hook: ChangeLog
80