Makefile.am revision af23b0a6
1# 
2#  Copyright 2005  Red Hat, Inc.
3# 
4#  Permission to use, copy, modify, distribute, and sell this software and its
5#  documentation for any purpose is hereby granted without fee, provided that
6#  the above copyright notice appear in all copies and that both that
7#  copyright notice and this permission notice appear in supporting
8#  documentation, and that the name of Red Hat not be used in
9#  advertising or publicity pertaining to distribution of the software without
10#  specific, written prior permission.  Red Hat makes no
11#  representations about the suitability of this software for any purpose.  It
12#  is provided "as is" without express or implied warranty.
13# 
14#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20#  PERFORMANCE OF THIS SOFTWARE.
21
22bin_PROGRAMS = xkbvleds xkbwatch xkbbell
23
24AM_CFLAGS = $(CWARNFLAGS)
25
26# xkbvleds
27
28xkbvleds_SOURCES = xkbvleds.c LED.c LED.h LEDP.h utils.c utils.h
29
30xkbvleds_CFLAGS = $(XKBVLEDS_CFLAGS) $(AM_CFLAGS)
31xkbvleds_LDADD = $(XKBVLEDS_LIBS)
32
33# xkbbell
34
35xkbbell_SOURCES = xkbbell.c
36
37xkbbell_CFLAGS = $(XKBBELL_CFLAGS) $(AM_CFLAGS)
38xkbbell_LDADD = $(XKBBELL_LIBS)
39
40# xkbwatch
41
42xkbwatch_SOURCES = xkbwatch.c LED.c LED.h LEDP.h utils.c utils.h
43xkbwatch_CFLAGS = $(XKBWATCH_CFLAGS) $(AM_CFLAGS)
44xkbwatch_LDADD = $(XKBWATCH_LIBS)
45
46# Man pages
47appman_PRE = xkbbell.man xkbvleds.man xkbwatch.man  
48
49appmandir = $(APP_MAN_DIR)
50
51appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
52
53EXTRA_DIST = $(appman_PRE) 
54MAINTAINERCLEANFILES = ChangeLog INSTALL
55CLEANFILES = $(appman_DATA)
56
57SUFFIXES = .$(APP_MAN_SUFFIX) .man
58
59# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
60.man.$(APP_MAN_SUFFIX):
61	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
62
63.PHONY: ChangeLog INSTALL
64
65INSTALL:
66	$(INSTALL_CMD)
67
68ChangeLog:
69	$(CHANGELOG_CMD)
70
71dist-hook: ChangeLog INSTALL
72