Makefile.am revision e2264b6d
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
24AM_CFLAGS = $(CWARNFLAGS) $(XMH_CFLAGS) -D_BSD_SOURCE
25
26xmh_LDADD = $(XMH_LIBS)
27
28xmh_SOURCES =	\
29        actions.h \
30        bbox.c \
31        bbox.h \
32        bboxint.h \
33        command.c \
34        compfuncs.c \
35        externs.h \
36        folder.c \
37        globals.h \
38        init.c \
39        main.c \
40        menu.c \
41        miscfuncs.c \
42        mlist.c \
43        mlist.h \
44        msg.c \
45        msg.h \
46        pick.c \
47        popup.c \
48        screen.c \
49        toc.c \
50        tocfuncs.c \
51        toc.h \
52        tocintrnl.h \
53        tocutil.c \
54        tocutil.h \
55        tsource.c \
56        tsource.h \
57        tsourceP.h \
58        util.c \
59        viewfuncs.c \
60        xmh.h
61
62appman_PRE = \
63        xmh.man
64
65# App default files
66DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults
67
68appdefaultdir = @appdefaultdir@
69
70dist_appdefault_DATA = \
71        app-defaults/Xmh
72
73#
74
75EXTRA_DIST = Xmh.sample
76
77
78appmandir = $(APP_MAN_DIR)
79
80appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
81
82EXTRA_DIST += $(appman_PRE)
83MAINTAINERCLEANFILES = ChangeLog INSTALL
84CLEANFILES = $(appman_DATA)
85
86SUFFIXES = .$(APP_MAN_SUFFIX) .man
87
88# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
89.man.$(APP_MAN_SUFFIX):
90	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
91
92
93.PHONY: ChangeLog INSTALL
94
95INSTALL:
96	$(INSTALL_CMD)
97
98ChangeLog:
99	$(CHANGELOG_CMD)
100
101dist-hook: ChangeLog INSTALL
102