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