Release 1.6.0.
[xtoys] / Makefile.am
CommitLineData
f6795c17
MW
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.
c1c9f4d2 16###
f6795c17
MW
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.
c1c9f4d2 21###
f6795c17
MW
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
26bin_PROGRAMS =
27bin_SCRIPTS =
28dist_man_MANS =
29EXTRA_DIST =
30CLEANFILES =
31
23a4d5f7 32confsubst = $(srcdir)/config/confsubst
bce8c6ee
MW
33EXTRA_DIST += config/confsubst
34
23a4d5f7
MW
35V_SUBST = $(V_SUBST_$(V))
36V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
37V_SUBST_0 = @echo " SUBST $@";
38SUBST = $(V_SUBST)$(confsubst)
f6795c17 39
23a4d5f7
MW
40SUBSTITUTIONS = \
41 PYTHON=$(PYTHON) VERSION=$(VERSION)
c8f5a865 42
f6795c17
MW
43###--------------------------------------------------------------------------
44### Simple tools in C.
45
46AM_CFLAGS = $(X_CFLAGS)
47LDADD = -lX11 $(X_LIBS)
48
23a4d5f7 49## xscsize.
f6795c17
MW
50bin_PROGRAMS += xscsize
51dist_man_MANS += xscsize.1
23a4d5f7 52xscsize_SOURCES = xscsize.c
243654c4 53xscsize_LDADD = $(LDADD) $(XRANDR_LIBS)
01a2fe8e 54
23a4d5f7 55## xatom.
01a2fe8e
MW
56bin_PROGRAMS += xatom
57dist_man_MANS += xatom.1
23a4d5f7 58xatom_SOURCES = xatom.c
01a2fe8e 59xatom_SOURCES += libxatom.h libxatom.c
f6795c17 60
dd6d43a6
MW
61## xrepaint.
62bin_PROGRAMS += xrepaint
63dist_man_MANS += xrepaint.1
64xrepaint_SOURCES = xrepaint.c
65
f6795c17 66###--------------------------------------------------------------------------
bce8c6ee
MW
67### Graphical tools in Python.
68
69if HAVE_PYGTK
70
71python_PYTHON =
72
73## Common code.
74python_PYTHON += xtoys.py
75
23a4d5f7 76## xmsg.
bce8c6ee
MW
77bin_SCRIPTS += xmsg
78CLEANFILES += xmsg
79EXTRA_DIST += xmsg.in
bce8c6ee
MW
80dist_man_MANS += xmsg.1
81
82xmsg: xmsg.in Makefile
23a4d5f7
MW
83 $(SUBST) $(srcdir)/xmsg.in >$@.new $(SUBSTITUTIONS) && \
84 chmod +x $@.new && mv $@.new $@
bce8c6ee 85
23a4d5f7 86## xcatch.
bce8c6ee
MW
87bin_SCRIPTS += xcatch
88CLEANFILES += xcatch
89EXTRA_DIST += xcatch.in
bce8c6ee
MW
90dist_man_MANS += xcatch.1
91
92xcatch: xcatch.in Makefile
23a4d5f7
MW
93 $(SUBST) $(srcdir)/xcatch.in >$@.new $(SUBSTITUTIONS) && \
94 chmod +x $@.new && mv $@.new $@
bce8c6ee 95
23a4d5f7 96## xgetline.
bce8c6ee
MW
97bin_SCRIPTS += xgetline
98CLEANFILES += xgetline
99EXTRA_DIST += xgetline.in
bce8c6ee
MW
100dist_man_MANS += xgetline.1
101
102xgetline: xgetline.in Makefile
23a4d5f7
MW
103 $(SUBST) $(srcdir)/xgetline.in >$@.new $(SUBSTITUTIONS) && \
104 chmod +x $@.new && mv $@.new $@
bce8c6ee
MW
105
106endif
107
108###--------------------------------------------------------------------------
23a4d5f7
MW
109### Distribution arrangements.
110
111dist-hook::
112 echo $(VERSION) >$(distdir)/RELEASE
113
114EXTRA_DIST += config/auto-version
115
116
117###--------------------------------------------------------------------------
f6795c17
MW
118### Debian.
119
120EXTRA_DIST += debian/rules
121EXTRA_DIST += debian/control
122EXTRA_DIST += debian/copyright
123EXTRA_DIST += debian/changelog
16b8de70 124EXTRA_DIST += debian/compat
f6795c17
MW
125
126EXTRA_DIST += debian/xtoys.install
127
bce8c6ee
MW
128EXTRA_DIST += debian/xtoys-gtk.install
129
f6795c17 130###----- That's all, folks --------------------------------------------------