Release 1.3.10.
[cfd] / Makefile.am
... / ...
CommitLineData
1### -*-makefile-*-
2###
3### Building the distribution
4###
5### (c) 1997 Mark Wooding
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of the Common Files Distribution (`common')
11###
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.
16###
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.
21###
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.
25
26bin_SCRIPTS =
27pkgdata_SCRIPTS =
28dist_pkgdata_SCRIPTS =
29pkgdata_DATA =
30dist_pkgdata_DATA =
31
32EXTRA_DIST =
33CLEANFILES =
34
35###--------------------------------------------------------------------------
36### Handy variables.
37
38confsubst = $(srcdir)/confsubst.in
39mkdir_p = $(srcdir)/config/install-sh -d
40
41V_SUBST = $(V_SUBST_$(V))
42V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
43V_SUBST_0 = @echo " SUBST $@";
44SUBST = $(V_SUBST)$(confsubst)
45
46###--------------------------------------------------------------------------
47### Main scripts.
48
49## mklinks
50bin_SCRIPTS += mklinks
51CLEANFILES += mklinks
52EXTRA_DIST += mklinks.in
53
54mklinks: 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 $@
59
60## findlinks
61bin_SCRIPTS += findlinks
62CLEANFILES += findlinks
63EXTRA_DIST += findlinks.in
64
65findlinks: 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 $@
70
71## mdw-setup
72bin_SCRIPTS += mdw-setup
73EXTRA_DIST += mdw-setup
74
75###--------------------------------------------------------------------------
76### Files to install.
77
78## Licences.
79dist_pkgdata_DATA += COPYING COPYING.LIB
80dist_pkgdata_DATA += gpl.tex lgpl.tex gpl.texi lgpl.texi
81
82## Documentation.
83dist_pkgdata_DATA += INSTALL
84dist_pkgdata_DATA += texinice.tex
85
86## Useful code.
87dist_pkgdata_DATA += mdwopt.c mdwopt.h
88dist_pkgdata_DATA += getdate.y getdate.h
89
90## Scripts.
91dist_pkgdata_SCRIPTS += install-ac
92dist_pkgdata_SCRIPTS += maninst
93
94## Python support stuff.
95dist_pkgdata_DATA += mdwsetup.py
96dist_pkgdata_DATA += pysetup.mk
97
98## confsubst
99pkgdata_SCRIPTS += confsubst
100CLEANFILES += confsubst
101EXTRA_DIST += confsubst.in
102
103confsubst: confsubst.in Makefile
104 $(SUBST) $(srcdir)/confsubst.in >$@.new VERSION=$(VERSION)
105 $(AM_V_at)chmod +x $@.new
106 $(AM_V_at)mv $@.new $@
107
108## auto-version
109pkgdata_SCRIPTS += auto-version
110CLEANFILES += auto-version
111EXTRA_DIST += auto-version.in
112
113auto-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 $@
117
118## Testsuites.
119dist_pkgdata_DATA += autotest.am
120dist_pkgdata_DATA += testsuite.at
121
122## Autoconf snippets.
123EXTRA_DIST += aclocal.glob
124
125install-data-hook::
126 $(mkdir_p) $(DESTDIR)$(aclocaldir)
127 $(srcdir)/install-ac install \
128 $(srcdir)/aclocal.glob $(DESTDIR)$(aclocaldir)
129
130uninstall-hook::
131 $(srcdir)/install-ac rm \
132 $(srcdir)/aclocal.glob $(DESTDIR)$(aclocaldir)
133
134###--------------------------------------------------------------------------
135### Documentation.
136
137info_TEXINFOS = common.texi
138
139###--------------------------------------------------------------------------
140### Other special tweaks.
141
142## Make `make distcheck' work.
143DISTCHECK_CONFIGURE_FLAGS = \
144 --with-aclocaldir='$${prefix}/share/aclocal'
145
146## Distribute the release number.
147dist-hook::
148 echo $(VERSION) >$(distdir)/RELEASE
149
150###--------------------------------------------------------------------------
151### Debian.
152
153EXTRA_DIST += debian/compat
154EXTRA_DIST += debian/control
155EXTRA_DIST += debian/copyright
156EXTRA_DIST += debian/rules
157EXTRA_DIST += debian/changelog
158
159###----- That's all, folks --------------------------------------------------