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.
28 dist_pkgdata_SCRIPTS =
35 ###--------------------------------------------------------------------------
38 confsubst = $(srcdir)/confsubst.in
39 mkdir_p = $(srcdir)/config/install-sh -d
41 V_SUBST = $(V_SUBST_$(V))
42 V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
43 V_SUBST_0 = @echo " SUBST $@";
44 SUBST = $(V_SUBST)$(confsubst)
46 ###--------------------------------------------------------------------------
50 bin_SCRIPTS += mklinks
52 EXTRA_DIST += mklinks.in
54 mklinks: mklinks.in Makefile
55 $(SUBST) $(srcdir)/mklinks.in >$@.new \
56 pkgdatadir=$(pkgdatadir) VERSION=$(VERSION)
57 $(AM_V_at)chmod +x $@.new
58 $(AM_V_at)mv $@.new $@
61 bin_SCRIPTS += findlinks
62 CLEANFILES += findlinks
63 EXTRA_DIST += findlinks.in
65 findlinks: findlinks.in Makefile
66 $(SUBST) $(srcdir)/findlinks.in >$@.new \
67 pkgdatadir=$(pkgdatadir) VERSION=$(VERSION)
68 $(AM_V_at)chmod +x $@.new
69 $(AM_V_at)mv $@.new $@
72 bin_SCRIPTS += mdw-setup
73 EXTRA_DIST += mdw-setup
75 ###--------------------------------------------------------------------------
79 dist_pkgdata_DATA += COPYING COPYING.LIB
80 dist_pkgdata_DATA += gpl.tex lgpl.tex gpl.texi lgpl.texi
83 dist_pkgdata_DATA += INSTALL
84 dist_pkgdata_DATA += texinice.tex
87 dist_pkgdata_DATA += mdwopt.c mdwopt.h
88 dist_pkgdata_DATA += getdate.y getdate.h
91 dist_pkgdata_SCRIPTS += install-ac
92 dist_pkgdata_SCRIPTS += maninst
94 ## Python support stuff.
95 dist_pkgdata_DATA += mdwsetup.py
96 dist_pkgdata_DATA += pysetup.mk
99 pkgdata_SCRIPTS += confsubst
100 CLEANFILES += confsubst
101 EXTRA_DIST += confsubst.in
103 confsubst: confsubst.in Makefile
104 $(SUBST) $(srcdir)/confsubst.in >$@.new VERSION=$(VERSION)
105 $(AM_V_at)chmod +x $@.new
106 $(AM_V_at)mv $@.new $@
109 pkgdata_SCRIPTS += auto-version
110 CLEANFILES += auto-version
111 EXTRA_DIST += auto-version.in
113 auto-version: auto-version.in Makefile
114 $(SUBST) $(srcdir)/auto-version.in >$@.new VERSION=$(VERSION)
115 $(AM_V_at)chmod +x $@.new
116 $(AM_V_at)mv $@.new $@
119 dist_pkgdata_DATA += autotest.am
120 dist_pkgdata_DATA += testsuite.at
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/compat
154 EXTRA_DIST += debian/control
155 EXTRA_DIST += debian/copyright
156 EXTRA_DIST += debian/rules
157 EXTRA_DIST += debian/changelog
159 ###----- That's all, folks --------------------------------------------------