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