Makefile.am revision 29459361
129459361Smrg# 
229459361Smrg#  Copyright 2005  Red Hat, Inc.
329459361Smrg# 
429459361Smrg#  Permission to use, copy, modify, distribute, and sell this software and its
529459361Smrg#  documentation for any purpose is hereby granted without fee, provided that
629459361Smrg#  the above copyright notice appear in all copies and that both that
729459361Smrg#  copyright notice and this permission notice appear in supporting
829459361Smrg#  documentation, and that the name of Red Hat not be used in
929459361Smrg#  advertising or publicity pertaining to distribution of the software without
1029459361Smrg#  specific, written prior permission.  Red Hat makes no
1129459361Smrg#  representations about the suitability of this software for any purpose.  It
1229459361Smrg#  is provided "as is" without express or implied warranty.
1329459361Smrg# 
1429459361Smrg#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1529459361Smrg#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1629459361Smrg#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1729459361Smrg#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1829459361Smrg#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1929459361Smrg#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2029459361Smrg#  PERFORMANCE OF THIS SOFTWARE.
2129459361Smrg
2229459361Smrgbin_PROGRAMS = appres
2329459361Smrg
2429459361Smrgappres_CFLAGS = $(APPRES_CFLAGS)
2529459361Smrgappres_LDADD = $(APPRES_LIBS)
2629459361Smrg
2729459361Smrgappres_SOURCES =		\
2829459361Smrg         appres.c
2929459361Smrg
3029459361Smrgappman_PRE = \
3129459361Smrg             appres.man
3229459361Smrg
3329459361Smrgappmandir = $(APP_MAN_DIR)
3429459361Smrg
3529459361Smrgappman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
3629459361Smrg
3729459361SmrgEXTRA_DIST = $(appman_PRE) ChangeLog autogen.sh
3829459361SmrgCLEANFILES = $(appman_DATA)
3929459361Smrg
4029459361SmrgMAINTAINERCLEANFILES=ChangeLog
4129459361Smrg
4229459361Smrg.PHONY: ChangeLog
4329459361Smrg
4429459361SmrgChangeLog:
4529459361Smrg	(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)
4629459361Smrg
4729459361Smrgdist-hook: ChangeLog
4829459361Smrg
4929459361SmrgSED = sed
5029459361Smrg
5129459361Smrg# Strings to replace in man pages
5229459361SmrgXORGRELSTRING = @PACKAGE_STRING@
5329459361Smrg  XORGMANNAME = X Version 11
5429459361Smrg
5529459361SmrgMAN_SUBSTS = \
5629459361Smrg	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
5729459361Smrg	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
5829459361Smrg	-e 's|__xservername__|Xorg|g' \
5929459361Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
6029459361Smrg	-e 's|__projectroot__|$(prefix)|g' \
6129459361Smrg	-e 's|__apploaddir__|$(appdefaultdir)|' \
6229459361Smrg	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
6329459361Smrg	-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
6429459361Smrg	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
6529459361Smrg	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
6629459361Smrg	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
6729459361Smrg
6829459361SmrgSUFFIXES = .$(APP_MAN_SUFFIX) .man
6929459361Smrg
7029459361Smrg.man.$(APP_MAN_SUFFIX):
7129459361Smrg	sed $(MAN_SUBSTS) < $< > $@
72