3 ### Building the distribution
5 ### (c) 1997 Mark Wooding
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of the Common Files Distribution (`common')
12 ### `Common' 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.
17 ### `Common' 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.
22 ### You should have received a copy of the GNU General Public License
23 ### along with `common'; if not, write to the Free Software Foundation,
24 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33 ###--------------------------------------------------------------------------
36 confsubst = $(srcdir)/confsubst
37 mkdir_p = $(srcdir)/config/install-sh -d
39 ###--------------------------------------------------------------------------
43 bin_SCRIPTS += mklinks
45 EXTRA_DIST += mklinks.in
47 mklinks: mklinks.in Makefile
48 $(confsubst) $(srcdir)/mklinks.in >$@.new \
49 pkgdatadir=$(pkgdatadir) VERSION=$(VERSION)
54 bin_SCRIPTS += findlinks
55 CLEANFILES += findlinks
56 EXTRA_DIST += findlinks.in
58 findlinks: findlinks.in Makefile
59 $(confsubst) $(srcdir)/findlinks.in >$@.new \
60 pkgdatadir=$(pkgdatadir) VERSION=$(VERSION)
65 bin_SCRIPTS += mdw-setup
66 EXTRA_DIST += mdw-setup
68 ###--------------------------------------------------------------------------
72 pkgdata_DATA += COPYING COPYING.LIB
73 pkgdata_DATA += gpl.tex lgpl.tex gpl.texi lgpl.texi
76 pkgdata_DATA += INSTALL
77 pkgdata_DATA += texinice.tex
80 pkgdata_DATA += mdwopt.c mdwopt.h
81 pkgdata_DATA += getdate.y getdate.h
84 pkgdata_SCRIPTS += install-ac
85 pkgdata_SCRIPTS += maninst
86 pkgdata_SCRIPTS += confsubst
89 pkgdata_DATA += autotest.am
90 pkgdata_DATA += testsuite.at
92 EXTRA_DIST += $(pkgdata_DATA)
93 EXTRA_DIST += $(pkgdata_SCRIPTS)
96 EXTRA_DIST += aclocal.glob
99 $(mkdir_p) $(DESTDIR)$(aclocaldir)
100 $(srcdir)/install-ac install \
101 $(srcdir)/aclocal.glob $(DESTDIR)$(aclocaldir)
104 $(srcdir)/install-ac rm \
105 $(srcdir)/aclocal.glob $(DESTDIR)$(aclocaldir)
107 ###--------------------------------------------------------------------------
110 info_TEXINFOS = common.texi
112 ###--------------------------------------------------------------------------
113 ### Other special tweaks.
115 ## Make `make distcheck' work.
116 DISTCHECK_CONFIGURE_FLAGS = \
117 --with-aclocaldir='$${prefix}/share/aclocal'
119 ## Distribute the release number.
121 echo $(VERSION) >$(distdir)/RELEASE
123 ###--------------------------------------------------------------------------
126 EXTRA_DIST += debian/control
127 EXTRA_DIST += debian/copyright
128 EXTRA_DIST += debian/rules
129 EXTRA_DIST += debian/changelog
131 ###----- That's all, folks --------------------------------------------------