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