3 ### Makefile for X tools
5 ### (c) 1998 Straylight/Edgeware
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of the Edgeware X tools collection.
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.
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.
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.
32 confsubst = $(srcdir)/config/confsubst
33 EXTRA_DIST += config/confsubst
35 ###--------------------------------------------------------------------------
36 ### Distribution arrangements.
39 echo $(VERSION) >$(distdir)/RELEASE
41 ###--------------------------------------------------------------------------
42 ### Simple tools in C.
44 AM_CFLAGS = $(X_CFLAGS)
45 LDADD = -lX11 $(X_LIBS)
48 bin_PROGRAMS += xscsize
49 dist_man_MANS += xscsize.1
52 xscsize_SOURCES += xscsize.c
56 dist_man_MANS += xatom.1
59 xatom_SOURCES += xatom.c
60 xatom_SOURCES += libxatom.h libxatom.c
62 ###--------------------------------------------------------------------------
63 ### Graphical tools in Python.
70 python_PYTHON += xtoys.py
77 dist_man_MANS += xmsg.1
79 xmsg: xmsg.in Makefile
80 $(confsubst) $(srcdir)/xmsg.in >$@.new \
81 PYTHON=$(PYTHON) VERSION=$(VERSION)
88 EXTRA_DIST += xcatch.in
90 dist_man_MANS += xcatch.1
92 xcatch: xcatch.in Makefile
93 $(confsubst) $(srcdir)/xcatch.in >$@.new \
94 PYTHON=$(PYTHON) VERSION=$(VERSION)
99 bin_SCRIPTS += xgetline
100 CLEANFILES += xgetline
101 EXTRA_DIST += xgetline.in
103 dist_man_MANS += xgetline.1
105 xgetline: xgetline.in Makefile
106 $(confsubst) $(srcdir)/xgetline.in >$@.new \
107 PYTHON=$(PYTHON) VERSION=$(VERSION)
113 ###--------------------------------------------------------------------------
116 EXTRA_DIST += debian/rules
117 EXTRA_DIST += debian/control
118 EXTRA_DIST += debian/copyright
119 EXTRA_DIST += debian/changelog
121 EXTRA_DIST += debian/xtoys.install
123 EXTRA_DIST += debian/xtoys-gtk.install
125 ###----- That's all, folks --------------------------------------------------