+## xrepaint.
+bin_PROGRAMS += xrepaint
+dist_man_MANS += xrepaint.1
+xrepaint_SOURCES = xrepaint.c
+
+###--------------------------------------------------------------------------
+### Graphical tools in Python.
+
+if HAVE_PYGTK
+
+python_PYTHON =
+
+## Common code.
+python_PYTHON += xtoys.py
+
+## xmsg.
+bin_SCRIPTS += xmsg
+CLEANFILES += xmsg
+EXTRA_DIST += xmsg.in
+dist_man_MANS += xmsg.1
+
+xmsg: xmsg.in Makefile
+ $(SUBST) $(srcdir)/xmsg.in >$@.new $(SUBSTITUTIONS) && \
+ chmod +x $@.new && mv $@.new $@
+
+## xcatch.
+bin_SCRIPTS += xcatch
+CLEANFILES += xcatch
+EXTRA_DIST += xcatch.in
+dist_man_MANS += xcatch.1
+
+xcatch: xcatch.in Makefile
+ $(SUBST) $(srcdir)/xcatch.in >$@.new $(SUBSTITUTIONS) && \
+ chmod +x $@.new && mv $@.new $@
+
+## xgetline.
+bin_SCRIPTS += xgetline
+CLEANFILES += xgetline
+EXTRA_DIST += xgetline.in
+dist_man_MANS += xgetline.1
+
+xgetline: xgetline.in Makefile
+ $(SUBST) $(srcdir)/xgetline.in >$@.new $(SUBSTITUTIONS) && \
+ chmod +x $@.new && mv $@.new $@
+
+endif
+
+###--------------------------------------------------------------------------
+### Distribution arrangements.
+
+dist-hook::
+ echo $(VERSION) >$(distdir)/RELEASE
+
+EXTRA_DIST += config/auto-version
+