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