1# Makefile for `Wget' utility
2# Copyright (C) 1995, 1996, 1997, 2006, 2007, 2008, 2009, 2010, 2011
3# Free Software Foundation, Inc.
4
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 3 of the License, or
8# (at your option) any later version.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14
15# You should have received a copy of the GNU General Public License
16# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18# Additional permission under GNU GPL version 3 section 7
19
20# If you modify this program, or any covered work, by linking or
21# combining it with the OpenSSL project's OpenSSL library (or a
22# modified version of that library), containing parts covered by the
23# terms of the OpenSSL or SSLeay licenses, the Free Software Foundation
24# grants you additional permission to convey the resulting work.
25# Corresponding Source for a non-source form of such a combination
26# shall include the source code for the parts of OpenSSL used as well
27# as that of the covered work.
28
29#
30# Version: $(VERSION)
31#
32
33
34# We can't help that installing wget.info leaves /usr/share/info/dir
35# around, and we need to prevent uninstallation of the possibly
36# previously-existing /etc/wgetrc.
37distuninstallcheck_listfiles = find . -type f | \
38			       grep -Ev '(/share/info/dir|/etc/wgetrc)$$'
39
40# Search for macros in the m4 subdirectory:
41ACLOCAL_AMFLAGS = -I m4
42
43# subdirectories in the distribution
44SUBDIRS = lib src po tests util testenv
45
46EXTRA_DIST = ChangeLog.README MAILING-LIST \
47             msdos/ChangeLog msdos/config.h msdos/Makefile.DJ \
48             msdos/Makefile.WC ABOUT-NLS \
49             build-aux/build_info.pl build-aux/git-version-gen .version
50
51CLEANFILES = *~ *.bak $(DISTNAME).tar.gz
52
53BUILT_SOURCES = .version
54
55clean-generic:
56	rm -f install-info
57
58.version:
59	echo $(VERSION) > $@-t && mv $@-t $@
60
61# Arrange so that .tarball-version appears only in the distribution
62# tarball, and never in a checked-out repository.
63dist-hook:
64	$(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
65