Makefile.am revision 14ddf674
1# $Id: Makefile.am,v 1.1.1.2 2010/05/21 06:29:02 mrg Exp $ 2# 3# Copyright 2005 Red Hat, Inc. 4# 5# Permission to use, copy, modify, distribute, and sell this software and its 6# documentation for any purpose is hereby granted without fee, provided that 7# the above copyright notice appear in all copies and that both that 8# copyright notice and this permission notice appear in supporting 9# documentation, and that the name of Red Hat not be used in 10# advertising or publicity pertaining to distribution of the software without 11# specific, written prior permission. Red Hat makes no 12# representations about the suitability of this software for any purpose. It 13# is provided "as is" without express or implied warranty. 14# 15# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 16# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 17# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 18# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 19# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 20# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 21# PERFORMANCE OF THIS SOFTWARE. 22 23bin_PROGRAMS = xvidtune 24 25AM_CFLAGS = $(CWARNFLAGS) $(XVIDTUNE_CFLAGS) 26xvidtune_LDADD = $(XVIDTUNE_LIBS) 27 28xvidtune_SOURCES = \ 29 xvidtune.c 30 31# Man page 32 33appmandir = $(APP_MAN_DIR) 34appman_PRE = xvidtune.man 35appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 36 37SED = sed 38 39# Strings to replace in man pages 40XORGRELSTRING = @PACKAGE_STRING@ 41 XORGMANNAME = X Version 11 42 43MAN_SUBSTS = \ 44 -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 45 -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 46 -e 's|__xservername__|Xorg|g' \ 47 -e 's|__xconfigfile__|xorg.conf|g' \ 48 -e 's|__projectroot__|$(prefix)|g' \ 49 -e 's|__apploaddir__|$(appdefaultdir)|' \ 50 -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 51 -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 52 -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 53 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 54 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 55 56SUFFIXES = .$(APP_MAN_SUFFIX) .man 57 58.man.$(APP_MAN_SUFFIX): 59 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ 60 61# App default files 62DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults 63 64appdefaultdir = @appdefaultdir@ 65 66dist_appdefault_DATA = app-defaults/Xvidtune 67 68EXTRA_DIST = $(appman_PRE) 69 70MAINTAINERCLEANFILES = ChangeLog INSTALL 71CLEANFILES = Xvidtune $(appman_DATA) 72 73 74 75.PHONY: ChangeLog INSTALL 76 77INSTALL: 78 $(INSTALL_CMD) 79 80ChangeLog: 81 $(CHANGELOG_CMD) 82 83dist-hook: ChangeLog INSTALL 84