Release 1.6.0.
[xtoys] / Makefile.am
1 ### -*-makefile-*-
2 ###
3 ### Makefile for X tools
4 ###
5 ### (c) 1998 Straylight/Edgeware
6 ###
7
8 ###----- Licensing notice ---------------------------------------------------
9 ###
10 ### This file is part of the Edgeware X tools collection.
11 ###
12 ### X tools is free software; you can redistribute it and/or modify
13 ### it under the terms of the GNU General Public License as published by
14 ### the Free Software Foundation; either version 2 of the License, or
15 ### (at your option) any later version.
16 ###
17 ### X tools is distributed in the hope that it will be useful,
18 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ### GNU General Public License for more details.
21 ###
22 ### You should have received a copy of the GNU General Public License
23 ### along with X tools; if not, write to the Free Software Foundation,
24 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26 bin_PROGRAMS =
27 bin_SCRIPTS =
28 dist_man_MANS =
29 EXTRA_DIST =
30 CLEANFILES =
31
32 confsubst = $(srcdir)/config/confsubst
33 EXTRA_DIST += config/confsubst
34
35 V_SUBST = $(V_SUBST_$(V))
36 V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
37 V_SUBST_0 = @echo " SUBST $@";
38 SUBST = $(V_SUBST)$(confsubst)
39
40 SUBSTITUTIONS = \
41 PYTHON=$(PYTHON) VERSION=$(VERSION)
42
43 ###--------------------------------------------------------------------------
44 ### Simple tools in C.
45
46 AM_CFLAGS = $(X_CFLAGS)
47 LDADD = -lX11 $(X_LIBS)
48
49 ## xscsize.
50 bin_PROGRAMS += xscsize
51 dist_man_MANS += xscsize.1
52 xscsize_SOURCES = xscsize.c
53 xscsize_LDADD = $(LDADD) $(XRANDR_LIBS)
54
55 ## xatom.
56 bin_PROGRAMS += xatom
57 dist_man_MANS += xatom.1
58 xatom_SOURCES = xatom.c
59 xatom_SOURCES += libxatom.h libxatom.c
60
61 ## xrepaint.
62 bin_PROGRAMS += xrepaint
63 dist_man_MANS += xrepaint.1
64 xrepaint_SOURCES = xrepaint.c
65
66 ###--------------------------------------------------------------------------
67 ### Graphical tools in Python.
68
69 if HAVE_PYGTK
70
71 python_PYTHON =
72
73 ## Common code.
74 python_PYTHON += xtoys.py
75
76 ## xmsg.
77 bin_SCRIPTS += xmsg
78 CLEANFILES += xmsg
79 EXTRA_DIST += xmsg.in
80 dist_man_MANS += xmsg.1
81
82 xmsg: xmsg.in Makefile
83 $(SUBST) $(srcdir)/xmsg.in >$@.new $(SUBSTITUTIONS) && \
84 chmod +x $@.new && mv $@.new $@
85
86 ## xcatch.
87 bin_SCRIPTS += xcatch
88 CLEANFILES += xcatch
89 EXTRA_DIST += xcatch.in
90 dist_man_MANS += xcatch.1
91
92 xcatch: xcatch.in Makefile
93 $(SUBST) $(srcdir)/xcatch.in >$@.new $(SUBSTITUTIONS) && \
94 chmod +x $@.new && mv $@.new $@
95
96 ## xgetline.
97 bin_SCRIPTS += xgetline
98 CLEANFILES += xgetline
99 EXTRA_DIST += xgetline.in
100 dist_man_MANS += xgetline.1
101
102 xgetline: xgetline.in Makefile
103 $(SUBST) $(srcdir)/xgetline.in >$@.new $(SUBSTITUTIONS) && \
104 chmod +x $@.new && mv $@.new $@
105
106 endif
107
108 ###--------------------------------------------------------------------------
109 ### Distribution arrangements.
110
111 dist-hook::
112 echo $(VERSION) >$(distdir)/RELEASE
113
114 EXTRA_DIST += config/auto-version
115
116
117 ###--------------------------------------------------------------------------
118 ### Debian.
119
120 EXTRA_DIST += debian/rules
121 EXTRA_DIST += debian/control
122 EXTRA_DIST += debian/copyright
123 EXTRA_DIST += debian/changelog
124 EXTRA_DIST += debian/compat
125
126 EXTRA_DIST += debian/xtoys.install
127
128 EXTRA_DIST += debian/xtoys-gtk.install
129
130 ###----- That's all, folks --------------------------------------------------