X-Git-Url: https://git.distorted.org.uk/~mdw/xtoys/blobdiff_plain/e6df3b1d1af68d556d12da7e6ba05215aaefe40b..4be8cb2b59106a6c55a235f713cc4ac2ba655df8:/Makefile.am diff --git a/Makefile.am b/Makefile.am index e7411e6..676c52b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,62 +1,130 @@ -## -*-makefile-*- -## -## $Id: Makefile.am,v 1.2 1998/11/21 22:27:21 mdw Exp $ -## -## 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. - -##----- Revision history ---------------------------------------------------- -## -## $Log: Makefile.am,v $ -## Revision 1.2 1998/11/21 22:27:21 mdw -## Change build structure a bit: put common code in a library. -## -## Revision 1.1 1998/11/16 23:00:49 mdw -## Initial versions. -## - -AUTOMAKE_OPTIONS = foreign - -noinst_LIBRARIES = libxtoys.a -libxtoys_a_SOURCES = mdwopt.c mdwopt.h quis.c quis.h -bin_PROGRAMS = xwait xtell xscsize @GTK_PROGS@ -EXTRA_PROGRAMS = xshutdown xgetline -man_MANS = xwait.1 xtell.1 xshutdown.1 xscsize.1 xgetline.1 -EXTRA_DIST = $(man_MANS) - -xshutdown_SOURCES = xshutdown.c xwait.h -xshutdown_LDADD = libxtoys.a @GTK_LIBS@ - -xgetline_SOURCES = xgetline.c -xgetline_LDADD = libxtoys.a @GTK_LIBS@ - -xwait_SOURCES = xwait.c xwait.h -xwait_LDADD = libxtoys.a @X_LIBS@ -lX11 - -xtell_SOURCES = xtell.c xwait.h -xtell_LDADD = libxtoys.a @X_LIBS@ -lX11 - -xscsize_SOURCES = xscsize.c -xscsize_LDADD = libxtoys.a @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 + +V_SUBST = $(V_SUBST_$(V)) +V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY)) +V_SUBST_0 = @echo " SUBST $@"; +SUBST = $(V_SUBST)$(confsubst) + +SUBSTITUTIONS = \ + PYTHON=$(PYTHON) VERSION=$(VERSION) + +###-------------------------------------------------------------------------- +### Simple tools in C. + +AM_CFLAGS = $(X_CFLAGS) +LDADD = -lX11 $(X_LIBS) + +## xscsize. +bin_PROGRAMS += xscsize +dist_man_MANS += xscsize.1 +xscsize_SOURCES = xscsize.c +xscsize_LDADD = $(LDADD) $(XRANDR_LIBS) + +## xatom. +bin_PROGRAMS += xatom +dist_man_MANS += xatom.1 +xatom_SOURCES = xatom.c +xatom_SOURCES += libxatom.h libxatom.c + +## 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 + + +###-------------------------------------------------------------------------- +### Debian. + +EXTRA_DIST += debian/rules +EXTRA_DIST += debian/control +EXTRA_DIST += debian/copyright +EXTRA_DIST += debian/changelog +EXTRA_DIST += debian/compat + +EXTRA_DIST += debian/xtoys.install + +EXTRA_DIST += debian/xtoys-gtk.install + +###----- That's all, folks --------------------------------------------------