Makefile.am revision e6232409
1e6232409Smrg# 2e6232409Smrg# Copyright 2005 Red Hat, Inc. 3e6232409Smrg# 4e6232409Smrg# Permission to use, copy, modify, distribute, and sell this software and its 5e6232409Smrg# documentation for any purpose is hereby granted without fee, provided that 6e6232409Smrg# the above copyright notice appear in all copies and that both that 7e6232409Smrg# copyright notice and this permission notice appear in supporting 8e6232409Smrg# documentation, and that the name of Red Hat not be used in 9e6232409Smrg# advertising or publicity pertaining to distribution of the software without 10e6232409Smrg# specific, written prior permission. Red Hat makes no 11e6232409Smrg# representations about the suitability of this software for any purpose. It 12e6232409Smrg# is provided "as is" without express or implied warranty. 13e6232409Smrg# 14e6232409Smrg# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15e6232409Smrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16e6232409Smrg# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17e6232409Smrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18e6232409Smrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19e6232409Smrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20e6232409Smrg# PERFORMANCE OF THIS SOFTWARE. 21e6232409Smrg 22e6232409Smrgbin_PROGRAMS = xlsfonts 23e6232409Smrg 24e6232409Smrgxlsfonts_CFLAGS = $(XLSFONTS_CFLAGS) 25e6232409Smrgxlsfonts_LDADD = $(XLSFONTS_LIBS) 26e6232409Smrg 27e6232409Smrgxlsfonts_SOURCES = \ 28e6232409Smrg dsimple.c \ 29e6232409Smrg dsimple.h \ 30e6232409Smrg xlsfonts.c 31e6232409Smrg 32e6232409Smrgappman_PRE = \ 33e6232409Smrg xlsfonts.man 34e6232409Smrg 35e6232409SmrgEXTRA_DIST = xlsfonts.sgml ChangeLog autogen.sh 36e6232409SmrgMAINTAINERCLEANFILES=ChangeLog 37e6232409Smrg 38e6232409SmrgChangeLog: 39e6232409Smrg (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) 40e6232409Smrg 41e6232409Smrgdist-hook: ChangeLog 42e6232409Smrg 43e6232409Smrgappmandir = $(APP_MAN_DIR) 44e6232409Smrg 45e6232409Smrgappman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 46e6232409Smrg 47e6232409SmrgEXTRA_DIST += $(appman_PRE) 48e6232409SmrgCLEANFILES = $(appman_DATA) 49e6232409Smrg 50e6232409SmrgSED = sed 51e6232409Smrg 52e6232409Smrg# Strings to replace in man pages 53e6232409SmrgXORGRELSTRING = @PACKAGE_STRING@ 54e6232409Smrg XORGMANNAME = X Version 11 55e6232409Smrg 56e6232409SmrgMAN_SUBSTS = \ 57e6232409Smrg -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 58e6232409Smrg -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 59e6232409Smrg -e 's|__xservername__|Xorg|g' \ 60e6232409Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 61e6232409Smrg -e 's|__projectroot__|$(prefix)|g' \ 62e6232409Smrg -e 's|__apploaddir__|$(appdefaultdir)|' \ 63e6232409Smrg -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 64e6232409Smrg -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 65e6232409Smrg -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 66e6232409Smrg -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 67e6232409Smrg -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 68e6232409Smrg 69e6232409SmrgSUFFIXES = .$(APP_MAN_SUFFIX) .man 70e6232409Smrg 71e6232409Smrg.man.$(APP_MAN_SUFFIX): 72e6232409Smrg sed $(MAN_SUBSTS) < $< > $@ 73