Makefile.am revision 8b6d6341
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 = xman 23 24helpdir=@HELPDIR@ 25dist_help_DATA = xman.help 26 27AM_CFLAGS = $(CWARNFLAGS) $(XMAN_CFLAGS) \ 28 -D_BSD_SOURCE -DHELPFILE=\"$(helpdir)/xman.help\" 29xman_LDADD = $(XMAN_LIBS) 30 31xman_SOURCES = \ 32 buttons.c \ 33 defs.h \ 34 globals.c \ 35 globals.h \ 36 handler.c \ 37 help.c \ 38 iconclosed.h \ 39 icon_help.h \ 40 icon_open.h \ 41 main.c \ 42 man.c \ 43 man.h \ 44 misc.c \ 45 ScrollByL.c \ 46 ScrollByL.h \ 47 ScrollByLP.h \ 48 search.c \ 49 tkfuncs.c \ 50 vendor.c \ 51 vendor.h \ 52 version.h 53 54appman_PRE = \ 55 xman.man 56 57# App default files 58 59DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults 60 61appdefaultdir = @appdefaultdir@ 62 63dist_appdefault_DATA = app-defaults/Xman 64 65appmandir = $(APP_MAN_DIR) 66 67appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 68 69EXTRA_DIST = $(appman_PRE) 70CLEANFILES = $(appman_DATA) 71 72SED = sed 73 74# Strings to replace in man pages 75XORGRELSTRING = @PACKAGE_STRING@ 76 XORGMANNAME = X Version 11 77 78MAN_SUBSTS = \ 79 -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 80 -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 81 -e 's|__xservername__|Xorg|g' \ 82 -e 's|__xconfigfile__|xorg.conf|g' \ 83 -e 's|__projectroot__|$(prefix)|g' \ 84 -e 's|__apploaddir__|$(appdefaultdir)|' \ 85 -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 86 -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 87 -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 88 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 89 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 90 91SUFFIXES = .$(APP_MAN_SUFFIX) .man 92 93.man.$(APP_MAN_SUFFIX): 94 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ 95 96EXTRA_DIST += ChangeLog 97MAINTAINERCLEANFILES = ChangeLog 98 99.PHONY: ChangeLog 100 101ChangeLog: 102 $(CHANGELOG_CMD) 103 104dist-hook: ChangeLog 105