Makefile.am revision c9e2be55
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 = xmh
23
24xmh_CFLAGS = $(XMH_CFLAGS) -DXVENDORNAME=\"X.org\ Foundation\" -DXORG_RELEASE=\"$(VERSION)\" -D_BSD_SOURCE
25xmh_LDADD = $(XMH_LIBS)
26
27xmh_SOURCES =	\
28        actions.h \
29        bbox.c \
30        bbox.h \
31        bboxint.h \
32        command.c \
33        compfuncs.c \
34        externs.h \
35        folder.c \
36        globals.h \
37        init.c \
38        main.c \
39        menu.c \
40        miscfuncs.c \
41        mlist.c \
42        mlist.h \
43        msg.c \
44        msg.h \
45        pick.c \
46        popup.c \
47        screen.c \
48        toc.c \
49        tocfuncs.c \
50        toc.h \
51        tocintrnl.h \
52        tocutil.c \
53        tocutil.h \
54        tsource.c \
55        tsource.h \
56        tsourceP.h \
57        util.c \
58        version.h \
59        viewfuncs.c \
60        xmh.h
61
62appman_PRE = \
63        xmh.man
64
65# App default files  (*.ad)
66
67appdefaultdir = @appdefaultdir@
68
69
70APPDEFAULTFILES = \
71        Xmh
72
73SUFFIXES = .ad
74
75.ad:
76	cp $< $@
77
78appdefault_DATA = $(APPDEFAULTFILES)
79
80# bitmap files
81
82bitmapdir = $(includedir)/X11/bitmaps
83
84dist_bitmap_DATA = black6 box6
85
86#
87
88EXTRA_DIST = $(APPDEFAULTFILES:%=%.ad) Xmh.sample
89
90CLEANFILES = $(APPDEFAULTFILES)
91
92
93appmandir = $(APP_MAN_DIR)
94
95appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
96
97EXTRA_DIST += $(appman_PRE)
98CLEANFILES += $(appman_DATA)
99
100SED = sed
101
102# Strings to replace in man pages
103XORGRELSTRING = @PACKAGE_STRING@
104  XORGMANNAME = X Version 11
105
106MAN_SUBSTS = \
107	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
108	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
109	-e 's|__xservername__|Xorg|g' \
110	-e 's|__xconfigfile__|xorg.conf|g' \
111	-e 's|__projectroot__|$(prefix)|g' \
112	-e 's|__apploaddir__|$(appdefaultdir)|' \
113	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
114	-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
115	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
116	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
117	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
118
119SUFFIXES += .$(APP_MAN_SUFFIX) .man
120
121.man.$(APP_MAN_SUFFIX):
122	sed $(MAN_SUBSTS) < $< > $@
123