Makefile.am revision 43f32c10
143f32c10Smrg# 243f32c10Smrg# Copyright 2005 Red Hat, Inc. 343f32c10Smrg# 443f32c10Smrg# Permission to use, copy, modify, distribute, and sell this software and its 543f32c10Smrg# documentation for any purpose is hereby granted without fee, provided that 643f32c10Smrg# the above copyright notice appear in all copies and that both that 743f32c10Smrg# copyright notice and this permission notice appear in supporting 843f32c10Smrg# documentation, and that the name of Red Hat not be used in 943f32c10Smrg# advertising or publicity pertaining to distribution of the software without 1043f32c10Smrg# specific, written prior permission. Red Hat makes no 1143f32c10Smrg# representations about the suitability of this software for any purpose. It 1243f32c10Smrg# is provided "as is" without express or implied warranty. 1343f32c10Smrg# 1443f32c10Smrg# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 1543f32c10Smrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 1643f32c10Smrg# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 1743f32c10Smrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 1843f32c10Smrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 1943f32c10Smrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 2043f32c10Smrg# PERFORMANCE OF THIS SOFTWARE. 2143f32c10Smrg 2243f32c10Smrgbin_PROGRAMS = fonttosfnt 2343f32c10Smrg 2443f32c10SmrgAM_CFLAGS = -DXVENDORNAME=\"X.Org\ Foundation\" $(FONTTOSFNT_CFLAGS) -DXVENDORNAMESHORT=\"X.Org\" -D_BSD_SOURCE 2543f32c10Smrgfonttosfnt_LDADD = $(FONTTOSFNT_LIBS) -lm 2643f32c10Smrg 2743f32c10Smrgfonttosfnt_SOURCES = \ 2843f32c10Smrg fonttosfnt.c \ 2943f32c10Smrg fonttosfnt.h \ 3043f32c10Smrg read.c \ 3143f32c10Smrg struct.c \ 3243f32c10Smrg util.c \ 3343f32c10Smrg write.c 3443f32c10Smrg 3543f32c10Smrgif NEED_SETENV 3643f32c10Smrgfonttosfnt_SOURCES += env.c 3743f32c10SmrgAM_CFLAGS += -DNEED_SETENV 3843f32c10Smrgendif 3943f32c10Smrg 4043f32c10Smrgappman_PRE = \ 4143f32c10Smrg fonttosfnt.man 4243f32c10Smrg 4343f32c10Smrg 4443f32c10Smrgappmandir = $(APP_MAN_DIR) 4543f32c10Smrg 4643f32c10Smrgappman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 4743f32c10Smrg 4843f32c10SmrgEXTRA_DIST = $(appman_PRE) ChangeLog 4943f32c10SmrgCLEANFILES = $(appman_DATA) ChangeLog 5043f32c10Smrg 5143f32c10SmrgSED = sed 5243f32c10Smrg 5343f32c10Smrg# Strings to replace in man pages 5443f32c10SmrgXORGRELSTRING = @PACKAGE_STRING@ 5543f32c10Smrg XORGMANNAME = X Version 11 5643f32c10Smrg 5743f32c10SmrgMAN_SUBSTS = \ 5843f32c10Smrg -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 5943f32c10Smrg -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 6043f32c10Smrg -e 's|__xservername__|Xorg|g' \ 6143f32c10Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 6243f32c10Smrg -e 's|__projectroot__|$(prefix)|g' \ 6343f32c10Smrg -e 's|__apploaddir__|$(appdefaultdir)|' \ 6443f32c10Smrg -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 6543f32c10Smrg -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 6643f32c10Smrg -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 6743f32c10Smrg -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 6843f32c10Smrg -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 6943f32c10Smrg 7043f32c10SmrgSUFFIXES = .$(APP_MAN_SUFFIX) .man 7143f32c10Smrg 7243f32c10Smrg.man.$(APP_MAN_SUFFIX): 7343f32c10Smrg sed $(MAN_SUBSTS) < $< > $@ 7443f32c10Smrg 7543f32c10Smrg.PHONY: ChangeLog 7643f32c10Smrg 7743f32c10SmrgChangeLog: 7843f32c10Smrg (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) 7943f32c10Smrg 8043f32c10Smrgdist-hook: ChangeLog 81