(|l)gpl-2.[01].tex: Remove the `\renewcommand{\theenumi}...' comments.
[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 += GPL-1 GPL-2 GPL-3
80dist_pkgdata_DATA += LGPL-2 LGPL-2.1 LGPL-3
81dist_pkgdata_DATA += AGPL-3
82dist_pkgdata_DATA += gpl-2.0.tex gpl-2.0.texi
83dist_pkgdata_DATA += lgpl-2.0.tex lgpl-2.0.texi
84dist_pkgdata_DATA += lgpl-2.1.tex lgpl-2.1.texi
85dist_pkgdata_DATA += gpl-3.0.tex gpl-3.0.texi
86dist_pkgdata_DATA += lgpl-3.0.tex lgpl-3.0.texi
87dist_pkgdata_DATA += agpl-3.0.tex agpl-3.0.texi
88
89install-data-hook::
90 cd $(DESTDIR)$(pkgdatadir) && $(LN_S) -f GPL-2 COPYING
91 cd $(DESTDIR)$(pkgdatadir) && $(LN_S) -f LGPL-2 COPYING.LIB
92 cd $(DESTDIR)$(pkgdatadir) && $(LN_S) -f gpl-2.0.tex gpl.tex
93 cd $(DESTDIR)$(pkgdatadir) && $(LN_S) -f lgpl-2.0.tex lgpl.tex
94 cd $(DESTDIR)$(pkgdatadir) && $(LN_S) -f gpl-2.0.texi gpl.texi
95 cd $(DESTDIR)$(pkgdatadir) && $(LN_S) -f lgpl-2.0.texi lgpl.texi
96
97uninstall-hook::
98 cd $(DESTDIR)$(pkgdatadir) && rm -f COPYING COPYING.LIB
99 cd $(DESTDIR)$(pkgdatadir) && \
100 rm -f gpl.tex gpl.texi lgpl.tex lgpl.texi
101
102## Documentation.
103dist_pkgdata_DATA += INSTALL
104dist_pkgdata_DATA += texinice.tex
105
106## Useful code.
107dist_pkgdata_DATA += mdwopt.c mdwopt.h
108dist_pkgdata_DATA += getdate.y getdate.h
109
110## Scripts.
111dist_pkgdata_SCRIPTS += install-ac
112dist_pkgdata_SCRIPTS += maninst
113
114## Python support stuff.
115dist_pkgdata_DATA += mdwsetup.py
116dist_pkgdata_DATA += pysetup.mk
117
118## confsubst
119pkgdata_SCRIPTS += confsubst
120CLEANFILES += confsubst
121EXTRA_DIST += confsubst.in
122
123confsubst: confsubst.in Makefile
124 $(SUBST) $(srcdir)/confsubst.in >$@.new VERSION=$(VERSION)
125 $(AM_V_at)chmod +x $@.new
126 $(AM_V_at)mv $@.new $@
127
128## auto-version
129pkgdata_SCRIPTS += auto-version
130CLEANFILES += auto-version
131EXTRA_DIST += auto-version.in
132
133auto-version: auto-version.in Makefile
134 $(SUBST) $(srcdir)/auto-version.in >$@.new VERSION=$(VERSION)
135 $(AM_V_at)chmod +x $@.new
136 $(AM_V_at)mv $@.new $@
137
138## Testsuites.
139dist_pkgdata_DATA += autotest.am
140dist_pkgdata_DATA += testsuite.at
141
142## Autoconf snippets.
143EXTRA_DIST += aclocal.glob
144
145install-data-hook::
146 $(mkdir_p) $(DESTDIR)$(aclocaldir)
147 $(srcdir)/install-ac install \
148 $(srcdir)/aclocal.glob $(DESTDIR)$(aclocaldir)
149
150uninstall-hook::
151 $(srcdir)/install-ac rm \
152 $(srcdir)/aclocal.glob $(DESTDIR)$(aclocaldir)
153
154###--------------------------------------------------------------------------
155### Documentation.
156
157info_TEXINFOS = common.texi
158
159###--------------------------------------------------------------------------
160### Other special tweaks.
161
162## Make `make distcheck' work.
163DISTCHECK_CONFIGURE_FLAGS = \
164 --with-aclocaldir='$${prefix}/share/aclocal'
165
166## Distribute the release number.
167dist-hook::
168 echo $(VERSION) >$(distdir)/RELEASE
169
170###--------------------------------------------------------------------------
171### Debian.
172
173EXTRA_DIST += debian/compat
174EXTRA_DIST += debian/control
175EXTRA_DIST += debian/copyright
176EXTRA_DIST += debian/rules
177EXTRA_DIST += debian/changelog
178EXTRA_DIST += debian/source/format
179
180###----- That's all, folks --------------------------------------------------