X-Git-Url: https://git.distorted.org.uk/~mdw/xtoys/blobdiff_plain/21f1d04d26a8ab23150412f9fade277d909bb5cb..aac5a363bd1bc5423a00ddc31a57b64e3bce80dd:/Makefile.am diff --git a/Makefile.am b/Makefile.am index b724114..ffdd407 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,62 +1,125 @@ -## -*-makefile-*- -## -## $Id$ -## -## Makefile for X tools -## -## (c) 1998 Straylight/Edgeware -## - -##----- Licensing notice ---------------------------------------------------- -## -## This file is part of the Edgeware X tools collection. -## -## X tools is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## X tools is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with X tools; if not, write to the Free Software Foundation, -## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -AUTOMAKE_OPTIONS = foreign - -GTK_PROGS = \ - xshutdown$(EXEEXT) xgetline$(EXEEXT) xcatch$(EXEEXT) xmsg$(EXEEXT) -bin_PROGRAMS = xwait xtell xscsize @GTK_PROGS@ -EXTRA_PROGRAMS = xshutdown xgetline xcatch xmsg -man_MANS = xwait.1 xtell.1 xshutdown.1 xscsize.1 xgetline.1 xcatch.1 xmsg.1 -EXTRA_DIST = \ - $(man_MANS) \ - debian/rules debian/copyright debian/control debian/changelog - -CLEANFILES = $(GTK_PROGS) - -xshutdown_SOURCES = xshutdown.c xwait.h xatom.c xatom.h -xshutdown_LDADD = @MGLIB_LIBS@ @GTK_LIBS@ - -xcatch_SOURCES = xcatch.c -xcatch_LDADD = @MGLIB_LIBS@ @GTK_LIBS@ - -xgetline_SOURCES = xgetline.c -xgetline_LDADD = @MGLIB_LIBS@ @GTK_LIBS@ - -xwait_SOURCES = xwait.c xwait.h xatom.c xatom.h -xwait_LDADD = @X_LIBS@ -lX11 - -xtell_SOURCES = xtell.c xwait.h xatom.c xatom.h -xtell_LDADD = @X_LIBS@ -lX11 - -xmsg_SOURCES = xmsg.c -xmsg_LDADD = @MGLIB_LIBS@ @GTK_LIBS@ - -xscsize_SOURCES = xscsize.c -xscsize_LDADD = @X_LIBS@ -lX11 - -##----- That's all, folks --------------------------------------------------- +### -*-makefile-*- +### +### Makefile for X tools +### +### (c) 1998 Straylight/Edgeware +### + +###----- Licensing notice --------------------------------------------------- +### +### This file is part of the Edgeware X tools collection. +### +### X tools is free software; you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation; either version 2 of the License, or +### (at your option) any later version. +### +### X tools is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with X tools; if not, write to the Free Software Foundation, +### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +bin_PROGRAMS = +bin_SCRIPTS = +dist_man_MANS = +EXTRA_DIST = +CLEANFILES = + +confsubst = $(srcdir)/config/confsubst +EXTRA_DIST += config/confsubst + +###-------------------------------------------------------------------------- +### Distribution arrangements. + +dist-hook:: + echo $(VERSION) >$(distdir)/RELEASE + +###-------------------------------------------------------------------------- +### Simple tools in C. + +AM_CFLAGS = $(X_CFLAGS) +LDADD = -lX11 $(X_LIBS) + +## xscsize +bin_PROGRAMS += xscsize +dist_man_MANS += xscsize.1 +xscsize_SOURCES = + +xscsize_SOURCES += xscsize.c + +## xatom +bin_PROGRAMS += xatom +dist_man_MANS += xatom.1 +xatom_SOURCES = + +xatom_SOURCES += xatom.c +xatom_SOURCES += libxatom.h libxatom.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 + $(confsubst) $(srcdir)/xmsg.in >$@.new \ + PYTHON=$(PYTHON) VERSION=$(VERSION) + chmod +x $@.new + mv $@.new $@ + +## xcatch +bin_SCRIPTS += xcatch +CLEANFILES += xcatch +EXTRA_DIST += xcatch.in + +dist_man_MANS += xcatch.1 + +xcatch: xcatch.in Makefile + $(confsubst) $(srcdir)/xcatch.in >$@.new \ + PYTHON=$(PYTHON) VERSION=$(VERSION) + chmod +x $@.new + mv $@.new $@ + +## xgetline +bin_SCRIPTS += xgetline +CLEANFILES += xgetline +EXTRA_DIST += xgetline.in + +dist_man_MANS += xgetline.1 + +xgetline: xgetline.in Makefile + $(confsubst) $(srcdir)/xgetline.in >$@.new \ + PYTHON=$(PYTHON) VERSION=$(VERSION) + chmod +x $@.new + mv $@.new $@ + +endif + +###-------------------------------------------------------------------------- +### Debian. + +EXTRA_DIST += debian/rules +EXTRA_DIST += debian/control +EXTRA_DIST += debian/copyright +EXTRA_DIST += debian/changelog + +EXTRA_DIST += debian/xtoys.install + +EXTRA_DIST += debian/xtoys-gtk.install + +###----- That's all, folks --------------------------------------------------