X-Git-Url: https://git.distorted.org.uk/~mdw/cfd/blobdiff_plain/c85e070b575236e0d90befccfbc4237b6a606109..cac38f7fe315b2869985b49beaca4677c568b853:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 0d4622f..7ca039d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,73 +1,141 @@ -## Process this file with Automake to generate `Makefile.in' -## -*-Makefile-*- -## -## $Id: Makefile.am,v 1.3 2000/08/15 21:37:06 mdw Exp $ -## -## Building the distribution -## -## (c) 1997 Mark Wooding -## - -##----- Licensing notice ---------------------------------------------------- -## -## This file is part of the Common Files Distribution (`common') -## -## `Common' 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. -## -## `Common' 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 `common'; 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.3 2000/08/15 21:37:06 mdw -## New common library configuration skeleton, filled in by configure.in. -## Replaces mLib-config etc. -## -## Revision 1.2 1999/05/17 20:43:49 mdw -## Add getdate implementation. -## -## Revision 1.1.1.1 1999/05/05 19:23:47 mdw -## New import. The old CVS repository was lost in a disk disaster. -## - -## --- Options --- - -AUTOMAKE_OPTIONS = foreign - -## --- What needs building --- - -bin_SCRIPTS = mklinks findlinks txtlib mkaclocal - -## --- Files to install in the repository --- - -pkgdata_DATA = \ - COPYING COPYING.LIB INSTALL \ - ansi2knr.1 ansi2knr.c \ - gpl.tex lgpl.tex gpl.texi lgpl.texi texinfo.tex texinice.tex \ - aclocal.glob lib-config.in \ - mdwopt.c mdwopt.h \ - getdate.y getdate.h - -EXTRA_DIST = $(pkgdata_DATA) - -pkgdata_SCRIPTS = \ - config.guess config.sub elisp-comp install-sh \ - mdate-sh missing mkinstalldirs ylwrap - -## --- Documentation --- +### -*-makefile-*- +### +### Building the distribution +### +### (c) 1997 Mark Wooding +### + +###----- Licensing notice --------------------------------------------------- +### +### This file is part of the Common Files Distribution (`common') +### +### `Common' 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. +### +### `Common' 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 `common'; if not, write to the Free Software Foundation, +### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +bin_SCRIPTS = +pkgdata_SCRIPTS = +pkgdata_DATA = + +EXTRA_DIST = +CLEANFILES = + +###-------------------------------------------------------------------------- +### Handy variables. + +confsubst = $(srcdir)/confsubst.in +mkdir_p = $(srcdir)/config/install-sh -d + +###-------------------------------------------------------------------------- +### Main scripts. + +## mklinks +bin_SCRIPTS += mklinks +CLEANFILES += mklinks +EXTRA_DIST += mklinks.in + +mklinks: mklinks.in Makefile + $(confsubst) $(srcdir)/mklinks.in >$@.new \ + pkgdatadir=$(pkgdatadir) VERSION=$(VERSION) + chmod +x $@.new + mv $@.new $@ + +## findlinks +bin_SCRIPTS += findlinks +CLEANFILES += findlinks +EXTRA_DIST += findlinks.in + +findlinks: findlinks.in Makefile + $(confsubst) $(srcdir)/findlinks.in >$@.new \ + pkgdatadir=$(pkgdatadir) VERSION=$(VERSION) + chmod +x $@.new + mv $@.new $@ + +## mdw-setup +bin_SCRIPTS += mdw-setup +EXTRA_DIST += mdw-setup + +###-------------------------------------------------------------------------- +### Files to install. + +## Licences. +pkgdata_DATA += COPYING COPYING.LIB +pkgdata_DATA += gpl.tex lgpl.tex gpl.texi lgpl.texi + +## Documentation. +pkgdata_DATA += INSTALL +pkgdata_DATA += texinice.tex + +## Useful code. +pkgdata_DATA += mdwopt.c mdwopt.h +pkgdata_DATA += getdate.y getdate.h + +## Scripts. +pkgdata_SCRIPTS += install-ac +pkgdata_SCRIPTS += maninst + +## confsubst +pkgdata_SCRIPTS += confsubst +CLEANFILES += confsubst +EXTRA_DIST += confsubst.in + +confsubst: confsubst.in Makefile + $(confsubst) $(srcdir)/confsubst.in >$@.new \ + VERSION=$(VERSION) + chmod +x $@.new + mv $@.new $@ + +## Testsuites. +pkgdata_DATA += autotest.am +pkgdata_DATA += testsuite.at + +EXTRA_DIST += $(pkgdata_DATA) +EXTRA_DIST += $(pkgdata_SCRIPTS) + +## Autoconf snippets. +EXTRA_DIST += aclocal.glob + +install-data-hook:: + $(mkdir_p) $(DESTDIR)$(aclocaldir) + $(srcdir)/install-ac install \ + $(srcdir)/aclocal.glob $(DESTDIR)$(aclocaldir) + +uninstall-hook:: + $(srcdir)/install-ac rm \ + $(srcdir)/aclocal.glob $(DESTDIR)$(aclocaldir) + +###-------------------------------------------------------------------------- +### Documentation. info_TEXINFOS = common.texi -## --- Cleaning up --- +###-------------------------------------------------------------------------- +### Other special tweaks. + +## Make `make distcheck' work. +DISTCHECK_CONFIGURE_FLAGS = \ + --with-aclocaldir='$${prefix}/share/aclocal' + +## Distribute the release number. +dist-hook:: + echo $(VERSION) >$(distdir)/RELEASE + +###-------------------------------------------------------------------------- +### Debian. + +EXTRA_DIST += debian/control +EXTRA_DIST += debian/copyright +EXTRA_DIST += debian/rules +EXTRA_DIST += debian/changelog -CLEANFILES = $(bin_SCRIPTS) +###----- That's all, folks --------------------------------------------------