Build fixes.
[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
c8f5a865
MW
41EXTRA_DIST += config/auto-version
42
f6795c17
MW
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
01a2fe8e
MW
52xscsize_SOURCES =
53
54xscsize_SOURCES += xscsize.c
55
56## xatom
57bin_PROGRAMS += xatom
58dist_man_MANS += xatom.1
59xatom_SOURCES =
60
61xatom_SOURCES += xatom.c
62xatom_SOURCES += libxatom.h libxatom.c
f6795c17
MW
63
64###--------------------------------------------------------------------------
bce8c6ee
MW
65### Graphical tools in Python.
66
67if HAVE_PYGTK
68
69python_PYTHON =
70
71## Common code.
72python_PYTHON += xtoys.py
73
74## xmsg
75bin_SCRIPTS += xmsg
76CLEANFILES += xmsg
77EXTRA_DIST += xmsg.in
78
79dist_man_MANS += xmsg.1
80
81xmsg: xmsg.in Makefile
82 $(confsubst) $(srcdir)/xmsg.in >$@.new \
83 PYTHON=$(PYTHON) VERSION=$(VERSION)
84 chmod +x $@.new
85 mv $@.new $@
86
87## xcatch
88bin_SCRIPTS += xcatch
89CLEANFILES += xcatch
90EXTRA_DIST += xcatch.in
91
92dist_man_MANS += xcatch.1
93
94xcatch: xcatch.in Makefile
95 $(confsubst) $(srcdir)/xcatch.in >$@.new \
96 PYTHON=$(PYTHON) VERSION=$(VERSION)
97 chmod +x $@.new
98 mv $@.new $@
99
100## xgetline
101bin_SCRIPTS += xgetline
102CLEANFILES += xgetline
103EXTRA_DIST += xgetline.in
104
105dist_man_MANS += xgetline.1
106
107xgetline: xgetline.in Makefile
108 $(confsubst) $(srcdir)/xgetline.in >$@.new \
109 PYTHON=$(PYTHON) VERSION=$(VERSION)
110 chmod +x $@.new
111 mv $@.new $@
112
113endif
114
115###--------------------------------------------------------------------------
f6795c17
MW
116### Debian.
117
118EXTRA_DIST += debian/rules
119EXTRA_DIST += debian/control
120EXTRA_DIST += debian/copyright
121EXTRA_DIST += debian/changelog
122
123EXTRA_DIST += debian/xtoys.install
124
bce8c6ee
MW
125EXTRA_DIST += debian/xtoys-gtk.install
126
f6795c17 127###----- That's all, folks --------------------------------------------------