Makefile.am revision e9554658
1# $Id: Makefile.am,v 1.1.1.1 2008/07/30 04:13:43 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 = xclock
24
25AM_CFLAGS = $(XCLOCK_CFLAGS)
26xclock_LDADD = $(XCLOCK_LIBS)
27
28xclock_SOURCES =	\
29        Clock.c \
30        Clock.h \
31        ClockP.h \
32        xclock.c
33
34appman_PRE = \
35        xclock.man
36
37# App default files  (*.ad)
38
39appdefaultdir = @appdefaultdir@
40
41
42APPDEFAULTFILES = \
43        XClock-color \
44        XClock
45
46SUFFIXES = .ad
47
48.ad:
49	cp $< $@
50
51appdefault_DATA = $(APPDEFAULTFILES)
52
53EXTRA_DIST = \
54	ChangeLog \
55	$(APPDEFAULTFILES:%=%.ad) \
56	clmask.bit \
57	clock.bit
58
59CLEANFILES = $(APPDEFAULTFILES)
60
61appmandir = $(APP_MAN_DIR)
62
63appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
64
65EXTRA_DIST += $(appman_PRE)
66CLEANFILES += $(appman_DATA)
67
68MAINTAINERCLEANFILES=ChangeLog
69
70.PHONY: ChangeLog
71
72ChangeLog:
73	(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)
74
75dist-hook: ChangeLog
76
77SED = sed
78
79# Strings to replace in man pages
80XORGRELSTRING = @PACKAGE_STRING@
81  XORGMANNAME = X Version 11
82
83MAN_SUBSTS = \
84	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
85	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
86	-e 's|__xservername__|Xorg|g' \
87	-e 's|__xconfigfile__|xorg.conf|g' \
88	-e 's|__projectroot__|$(prefix)|g' \
89	-e 's|__apploaddir__|$(appdefaultdir)|' \
90	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
91	-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
92	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
93	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
94	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
95
96SUFFIXES += .$(APP_MAN_SUFFIX) .man
97
98.man.$(APP_MAN_SUFFIX):
99	sed $(MAN_SUBSTS) < $< > $@
100