Makefile.am revision a005d216
1ff7e0accSmrg# 
2ff7e0accSmrg#  Copyright 2005  Red Hat, Inc.
3ff7e0accSmrg# 
4ff7e0accSmrg#  Permission to use, copy, modify, distribute, and sell this software and its
5ff7e0accSmrg#  documentation for any purpose is hereby granted without fee, provided that
6ff7e0accSmrg#  the above copyright notice appear in all copies and that both that
7ff7e0accSmrg#  copyright notice and this permission notice appear in supporting
8ff7e0accSmrg#  documentation, and that the name of Red Hat not be used in
9ff7e0accSmrg#  advertising or publicity pertaining to distribution of the software without
10ff7e0accSmrg#  specific, written prior permission.  Red Hat makes no
11ff7e0accSmrg#  representations about the suitability of this software for any purpose.  It
12ff7e0accSmrg#  is provided "as is" without express or implied warranty.
13ff7e0accSmrg# 
14ff7e0accSmrg#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15ff7e0accSmrg#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16ff7e0accSmrg#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17ff7e0accSmrg#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18ff7e0accSmrg#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19ff7e0accSmrg#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20ff7e0accSmrg#  PERFORMANCE OF THIS SOFTWARE.
21ff7e0accSmrg
22ff7e0accSmrgbin_PROGRAMS = xwininfo
23ff7e0accSmrg
24ff7e0accSmrgAM_CFLAGS = $(XWININFO_CFLAGS)
25ff7e0accSmrgxwininfo_LDADD = $(XWININFO_LIBS)
26ff7e0accSmrg
27ff7e0accSmrgxwininfo_SOURCES =	\
28a005d216Smrg        clientwin.c \
29a005d216Smrg        clientwin.h \
30ff7e0accSmrg        dsimple.c \
31ff7e0accSmrg        dsimple.h \
32ff7e0accSmrg        xwininfo.c
33ff7e0accSmrg
34ff7e0accSmrgappman_PRE = \
35ff7e0accSmrg        xwininfo.man
36ff7e0accSmrg
37ff7e0accSmrg
38ff7e0accSmrgappmandir = $(APP_MAN_DIR)
39ff7e0accSmrg
40ff7e0accSmrgappman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
41ff7e0accSmrg
42ff7e0accSmrgEXTRA_DIST = $(appman_PRE) ChangeLog autogen.sh
43ff7e0accSmrgCLEANFILES = $(appman_DATA)
44ff7e0accSmrgMAINTAINERCLEANFILES = ChangeLog
45ff7e0accSmrg
46ff7e0accSmrg.PHONY: ChangeLog
47ff7e0accSmrg
48ff7e0accSmrgChangeLog:
49ff7e0accSmrg	(GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
50ff7e0accSmrg
51ff7e0accSmrgdist-hook: ChangeLog
52ff7e0accSmrg
53ff7e0accSmrgSED = sed
54ff7e0accSmrg
55ff7e0accSmrg# Strings to replace in man pages
56ff7e0accSmrgXORGRELSTRING = @PACKAGE_STRING@
57ff7e0accSmrg  XORGMANNAME = X Version 11
58ff7e0accSmrg
59ff7e0accSmrgMAN_SUBSTS = \
60ff7e0accSmrg	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
61ff7e0accSmrg	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
62ff7e0accSmrg	-e 's|__xservername__|Xorg|g' \
63ff7e0accSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
64ff7e0accSmrg	-e 's|__projectroot__|$(prefix)|g' \
65ff7e0accSmrg	-e 's|__apploaddir__|$(appdefaultdir)|' \
66ff7e0accSmrg	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
67ff7e0accSmrg	-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
68ff7e0accSmrg	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
69ff7e0accSmrg	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
70ff7e0accSmrg	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
71ff7e0accSmrg
72ff7e0accSmrgSUFFIXES = .$(APP_MAN_SUFFIX) .man
73ff7e0accSmrg
74ff7e0accSmrg.man.$(APP_MAN_SUFFIX):
75ff7e0accSmrg	sed $(MAN_SUBSTS) < $< > $@
76