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.in
37 mkdir_p = $(srcdir)/config/install-sh -d
39 V_SUBST = $(V_SUBST_$(V))
40 V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
41 V_SUBST_0 = @echo " SUBST $@";
42 SUBST = $(V_SUBST)$(confsubst)
44 ###--------------------------------------------------------------------------
48 bin_SCRIPTS += mklinks
50 EXTRA_DIST += mklinks.in
52 mklinks: mklinks.in Makefile
53 $(SUBST) $(srcdir)/mklinks.in >$@.new \
54 pkgdatadir=$(pkgdatadir) VERSION=$(VERSION)
55 $(AM_V_at)chmod +x $@.new
56 $(AM_V_at)mv $@.new $@
59 bin_SCRIPTS += findlinks
60 CLEANFILES += findlinks
61 EXTRA_DIST += findlinks.in
63 findlinks: findlinks.in Makefile
64 $(SUBST) $(srcdir)/findlinks.in >$@.new \
65 pkgdatadir=$(pkgdatadir) VERSION=$(VERSION)
66 $(AM_V_at)chmod +x $@.new
67 $(AM_V_at)mv $@.new $@
70 bin_SCRIPTS += mdw-setup
71 EXTRA_DIST += mdw-setup
73 ###--------------------------------------------------------------------------
77 pkgdata_DATA += COPYING COPYING.LIB
78 pkgdata_DATA += gpl.tex lgpl.tex gpl.texi lgpl.texi
81 pkgdata_DATA += INSTALL
82 pkgdata_DATA += texinice.tex
85 pkgdata_DATA += mdwopt.c mdwopt.h
86 pkgdata_DATA += getdate.y getdate.h
89 pkgdata_SCRIPTS += install-ac
90 pkgdata_SCRIPTS += maninst
92 ## Python support stuff.
93 pkgdata_SCRIPTS += mdwsetup.py
96 pkgdata_SCRIPTS += confsubst
97 CLEANFILES += confsubst
98 EXTRA_DIST += confsubst.in
100 confsubst: confsubst.in Makefile
101 $(SUBST) $(srcdir)/confsubst.in >$@.new VERSION=$(VERSION)
102 $(AM_V_at)chmod +x $@.new
103 $(AM_V_at)mv $@.new $@
106 pkgdata_SCRIPTS += auto-version
107 CLEANFILES += auto-version
108 EXTRA_DIST += auto-version.in
110 auto-version: auto-version.in Makefile
111 $(SUBST) $(srcdir)/auto-version.in >$@.new VERSION=$(VERSION)
112 $(AM_V_at)chmod +x $@.new
113 $(AM_V_at)mv $@.new $@
116 pkgdata_DATA += autotest.am
117 pkgdata_DATA += testsuite.at
119 EXTRA_DIST += $(pkgdata_DATA)
120 EXTRA_DIST += $(pkgdata_SCRIPTS)
122 ## Autoconf snippets.
123 EXTRA_DIST += aclocal.glob
126 $(mkdir_p) $(DESTDIR)$(aclocaldir)
127 $(srcdir)/install-ac install \
128 $(srcdir)/aclocal.glob $(DESTDIR)$(aclocaldir)
131 $(srcdir)/install-ac rm \
132 $(srcdir)/aclocal.glob $(DESTDIR)$(aclocaldir)
134 ###--------------------------------------------------------------------------
137 info_TEXINFOS = common.texi
139 ###--------------------------------------------------------------------------
140 ### Other special tweaks.
142 ## Make `make distcheck' work.
143 DISTCHECK_CONFIGURE_FLAGS = \
144 --with-aclocaldir='$${prefix}/share/aclocal'
146 ## Distribute the release number.
148 echo $(VERSION) >$(distdir)/RELEASE
150 ###--------------------------------------------------------------------------
153 EXTRA_DIST += debian/control
154 EXTRA_DIST += debian/copyright
155 EXTRA_DIST += debian/rules
156 EXTRA_DIST += debian/changelog
158 ###----- That's all, folks --------------------------------------------------