2 # Copyright 2005 Red Hat, Inc.
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.
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.
22 CPP_PROGRAM = @CPP_PROGRAM@
24 PREPROCESSCMD_MKDEPEND = @PREPROCESSCMD_MKDEPEND@
32 bin_PROGRAMS = imake $(REVPATH)
34 AM_CFLAGS = $(CWARNFLAGS)
36 imake_CFLAGS = $(XPROTO_CFLAGS) -DCPP_PROGRAM='"$(CPP_PROGRAM)"' $(CWARNFLAGS)
37 imake_SOURCES = imake.c imakemdep.h
39 revpath_SOURCES = revpath.c
62 CLEANLINKS = cleanlinks
66 MKHTMLINDEX = mkhtmlindex
79 $(AM_V_GEN)$(RAWCPP) $(RAWCPPFLAGS) -DCONFIGDIRSPEC='"-I$(XCONFDIR)"' < $(srcdir)/xmkmf.cpp | $(SED) -e /^\#/d | $(SED) -e s/XCOMM/\#/ > $@
81 ccmakedep: mdepend.cpp
82 $(AM_V_GEN)$(RAWCPP) $(RAWCPPFLAGS) -DPREPROC='"$(PREPROCESSCMD_MKDEPEND)"' < $(srcdir)/mdepend.cpp | $(SED) -e /^\#/d | $(SED) -e s/XCOMM/\#/ > $@
84 mergelib: mergelib.cpp
85 $(AM_V_GEN)$(RAWCPP) $(RAWCPPFLAGS) -DARCMD="$(ARCMD)" -DRANLIB="$(RANLIB)" < $(srcdir)/mergelib.cpp | $(SED) -e /^\#/d | $(SED) -e s/XCOMM/\#/ > $@
88 MKHTMLINDEX_SCRIPT = $(srcdir)/mkhtmlindex.pl
90 MKHTMLINDEX_SCRIPT = $(srcdir)/mkhtmlindex.sh
93 mkhtmlindex: $(MKHTMLINDEX_SCRIPT)
94 $(AM_V_GEN)cp $(MKHTMLINDEX_SCRIPT) $@
114 appmandir = $(APP_MAN_DIR)
127 # Only need to install man pages for programs/scripts being installed
128 appman_DATA = $(bin_PROGRAMS:%$(EXEEXT)=%.@APP_MAN_SUFFIX@) $(bin_SCRIPTS:%=%.@APP_MAN_SUFFIX@)
130 EXTRA_DIST += $(appman_PRE)
131 CLEANFILES += $(appman_DATA)
133 # String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
135 -e 's|__cpp__|$(RAWCPP)|g'
137 SUFFIXES = .$(APP_MAN_SUFFIX) .man
139 .man.$(APP_MAN_SUFFIX):
140 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
142 EXTRA_DIST += ChangeLog
143 MAINTAINERCLEANFILES = ChangeLog
145 .PHONY: ChangeLog INSTALL
153 dist-hook: ChangeLog INSTALL