Makefile.am revision a8fdb4bc
1a8fdb4bcSmrg# 2a8fdb4bcSmrg# Copyright 2005 Red Hat, Inc. 3a8fdb4bcSmrg# 4a8fdb4bcSmrg# Permission to use, copy, modify, distribute, and sell this software and its 5a8fdb4bcSmrg# documentation for any purpose is hereby granted without fee, provided that 6a8fdb4bcSmrg# the above copyright notice appear in all copies and that both that 7a8fdb4bcSmrg# copyright notice and this permission notice appear in supporting 8a8fdb4bcSmrg# documentation, and that the name of Red Hat not be used in 9a8fdb4bcSmrg# advertising or publicity pertaining to distribution of the software without 10a8fdb4bcSmrg# specific, written prior permission. Red Hat makes no 11a8fdb4bcSmrg# representations about the suitability of this software for any purpose. It 12a8fdb4bcSmrg# is provided "as is" without express or implied warranty. 13a8fdb4bcSmrg# 14a8fdb4bcSmrg# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15a8fdb4bcSmrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16a8fdb4bcSmrg# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17a8fdb4bcSmrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18a8fdb4bcSmrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19a8fdb4bcSmrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20a8fdb4bcSmrg# PERFORMANCE OF THIS SOFTWARE. 21a8fdb4bcSmrg 22a8fdb4bcSmrgbin_PROGRAMS = luit 23a8fdb4bcSmrg 24a8fdb4bcSmrgLOCALEALIASFILE = @LOCALEALIASFILE@ 25a8fdb4bcSmrg 26a8fdb4bcSmrgAM_CFLAGS = $(LUIT_CFLAGS) -DLOCALE_ALIAS_FILE=\"$(LOCALEALIASFILE)\" 27a8fdb4bcSmrgluit_LDADD = $(LUIT_LIBS) 28a8fdb4bcSmrg 29a8fdb4bcSmrgluit_SOURCES = \ 30a8fdb4bcSmrg charset.c \ 31a8fdb4bcSmrg charset.h \ 32a8fdb4bcSmrg iso2022.c \ 33a8fdb4bcSmrg iso2022.h \ 34a8fdb4bcSmrg locale.c \ 35a8fdb4bcSmrg luit.c \ 36a8fdb4bcSmrg luit.h \ 37a8fdb4bcSmrg other.c \ 38a8fdb4bcSmrg other.h \ 39a8fdb4bcSmrg parser.c \ 40a8fdb4bcSmrg parser.h \ 41a8fdb4bcSmrg sys.c \ 42a8fdb4bcSmrg sys.h 43a8fdb4bcSmrg 44a8fdb4bcSmrgappman_PRE = \ 45a8fdb4bcSmrg luit.man 46a8fdb4bcSmrg 47a8fdb4bcSmrg 48a8fdb4bcSmrgappmandir = $(APP_MAN_DIR) 49a8fdb4bcSmrg 50a8fdb4bcSmrgappman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 51a8fdb4bcSmrg 52a8fdb4bcSmrgEXTRA_DIST = $(appman_PRE) ChangeLog 53a8fdb4bcSmrgCLEANFILES = $(appman_DATA) 54a8fdb4bcSmrg 55a8fdb4bcSmrgSED = sed 56a8fdb4bcSmrg 57a8fdb4bcSmrgMAINTAINERCLEANFILES = ChangeLog 58a8fdb4bcSmrg 59a8fdb4bcSmrg.PHONY: ChangeLog 60a8fdb4bcSmrg 61a8fdb4bcSmrgChangeLog: 62a8fdb4bcSmrg (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) 63a8fdb4bcSmrg 64a8fdb4bcSmrgdist-hook: ChangeLog 65a8fdb4bcSmrg 66a8fdb4bcSmrg# Strings to replace in man pages 67a8fdb4bcSmrgXORGRELSTRING = @PACKAGE_STRING@ 68a8fdb4bcSmrg XORGMANNAME = X Version 11 69a8fdb4bcSmrg 70a8fdb4bcSmrgMAN_SUBSTS = \ 71a8fdb4bcSmrg -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 72a8fdb4bcSmrg -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 73a8fdb4bcSmrg -e 's|__xservername__|Xorg|g' \ 74a8fdb4bcSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 75a8fdb4bcSmrg -e 's|__localealiasfile__|$(LOCALEALIASFILE)|g' \ 76a8fdb4bcSmrg -e 's|__projectroot__|$(prefix)|g' \ 77a8fdb4bcSmrg -e 's|__apploaddir__|$(appdefaultdir)|' \ 78a8fdb4bcSmrg -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 79a8fdb4bcSmrg -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 80a8fdb4bcSmrg -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 81a8fdb4bcSmrg -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 82a8fdb4bcSmrg -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 83a8fdb4bcSmrg 84a8fdb4bcSmrgSUFFIXES = .$(APP_MAN_SUFFIX) .man 85a8fdb4bcSmrg 86a8fdb4bcSmrg.man.$(APP_MAN_SUFFIX): 87a8fdb4bcSmrg sed $(MAN_SUBSTS) < $< > $@ 88