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