~ubuntu-branches/ubuntu/dapper/wget/dapper-updates

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2004-02-13 20:26:44 UTC
  • Revision ID: james.westby@ubuntu.com-20040213202644-skxj93qs15sskqfy
Tags: upstream-1.9.1
Import upstream version 1.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for `Wget' utility
 
2
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
 
3
 
 
4
# This program is free software; you can redistribute it and/or modify
 
5
# it under the terms of the GNU General Public License as published by
 
6
# the Free Software Foundation; either version 2 of the License, or
 
7
# (at your option) any later version.
 
8
 
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU General Public License for more details.
 
13
 
 
14
# You should have received a copy of the GNU General Public License
 
15
# along with this program; if not, write to the Free Software
 
16
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
17
 
 
18
# In addition, as a special exception, the Free Software Foundation
 
19
# gives permission to link the code of its release of Wget with the
 
20
# OpenSSL project's "OpenSSL" library (or with modified versions of it
 
21
# that use the same license as the "OpenSSL" library), and distribute
 
22
# the linked executables.  You must obey the GNU General Public License
 
23
# in all respects for all of the code used other than "OpenSSL".  If you
 
24
# modify this file, you may extend this exception to your version of the
 
25
# file, but you are not obligated to do so.  If you do not wish to do
 
26
# so, delete this exception statement from your version.
 
27
 
 
28
#
 
29
# Version: @VERSION@
 
30
#
 
31
 
 
32
SHELL = /bin/sh
 
33
@SET_MAKE@
 
34
 
 
35
top_builddir = .
 
36
 
 
37
srcdir = @srcdir@
 
38
VPATH  = @srcdir@
 
39
 
 
40
#
 
41
# User configuration section
 
42
#
 
43
 
 
44
#
 
45
# Install variables
 
46
#
 
47
prefix      = @prefix@
 
48
exec_prefix = @exec_prefix@
 
49
bindir      = @bindir@
 
50
infodir     = @infodir@
 
51
sysconfdir  = @sysconfdir@
 
52
mandir      = @mandir@
 
53
manext      = 1
 
54
localedir   = $(prefix)/share/locale
 
55
 
 
56
CC = @CC@
 
57
CFLAGS = @CFLAGS@
 
58
CPPFLAGS = @CPPFLAGS@
 
59
DEFS = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
 
60
LIBS = @LIBS@
 
61
LDFLAGS = @LDFLAGS@
 
62
 
 
63
#
 
64
# End of user configuration section.  There should be no need to change
 
65
# anything below this line.
 
66
#
 
67
 
 
68
DISTNAME = wget-@VERSION@
 
69
LIBTOOL_DEPS = @LIBTOOL_DEPS@
 
70
RM = rm -f
 
71
 
 
72
# These are used for maintenance only, so they are safe without
 
73
# special autoconf cruft.
 
74
FIND = find
 
75
GZIP = gzip
 
76
TAR = tar
 
77
 
 
78
# flags passed to recursive makes in subdirectories
 
79
MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
 
80
CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
 
81
prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
 
82
infodir='$(infodir)' mandir='$(mandir)' manext='$(manext)'
 
83
 
 
84
# subdirectories in the distribution
 
85
SUBDIRS = src doc po util windows
 
86
 
 
87
# default target
 
88
all: libtool src/config.h Makefile $(SUBDIRS)
 
89
 
 
90
check: all
 
91
 
 
92
$(SUBDIRS): FORCE
 
93
        cd $@ && $(MAKE) $(MAKEDEFS)
 
94
 
 
95
# install everything
 
96
install: install.bin install.info install.wgetrc \
 
97
         install.mo @COMMENT_IF_NO_POD2MAN@install.man
 
98
 
 
99
# install/uninstall the binary
 
100
install.bin uninstall.bin:
 
101
        cd src && $(MAKE) $(MAKEDEFS) $@
 
102
 
 
103
# install/uninstall the info/man pages
 
104
install.info uninstall.info install.man uninstall.man install.wgetrc:
 
105
        cd doc && $(MAKE) $(MAKEDEFS) $@
 
106
 
 
107
# Install `.mo' files
 
108
install.mo:
 
109
        cd po && $(MAKE) $(MAKEDEFS) $@
 
110
 
 
111
# Regenerate libtool if ltconfig and/or ltmain are updated
 
112
libtool: $(LIBTOOL_DEPS)
 
113
        $(SHELL) ./config.status --recheck
 
114
 
 
115
# Create configure.bat from configure.bat.in by DOS-ifying the lines.
 
116
# This is invoked by `make dist' and deleted by `make realclean' (not
 
117
# `make distclean' because we want to preserve it for distribution).
 
118
configure.bat: $(srcdir)/configure.bat.in
 
119
        awk '{ print $$0 ($$0 ~ /\r$$/ ? "" : "\r") }' $< > $@
 
120
 
 
121
# create tag files for Emacs
 
122
TAGS:
 
123
        cd src && $(MAKE) $@
 
124
 
 
125
dist: $(srcdir)/configure $(srcdir)/configure.bat DISTFILES
 
126
        mkdir $(DISTNAME)
 
127
        for d in `$(FIND) . -type d ! -name CVS -a ! -name RCS -print`; do \
 
128
                if [ "$$d" != "." -a "$$d" != "./$(DISTNAME)" ]; then \
 
129
                        mkdir $(DISTNAME)/$$d; \
 
130
                fi; \
 
131
        done
 
132
        for f in `cat DISTFILES`; do \
 
133
                ln $(srcdir)/$$f $(DISTNAME)/$$f || \
 
134
                { echo copying $$f; cp -p $(srcdir)/$$f $(DISTNAME)/$$f ; } \
 
135
        done
 
136
        (cd $(DISTNAME); $(MAKE) distclean)
 
137
        $(TAR) chvf - $(DISTNAME) | $(GZIP) -c --best >$(DISTNAME).tar.gz
 
138
        $(RM) -r $(DISTNAME)
 
139
        $(RM) DISTFILES
 
140
 
 
141
DISTFILES: FORCE
 
142
        rm -rf $(DISTNAME)      
 
143
        (cd $(srcdir); find . ! -type d -print) \
 
144
        | sed '/\/\(CVS\|RCS\)\//d; \
 
145
                /$@/d; \
 
146
                /\.tar.*/d; \
 
147
                s/^.\///; /^\.$$/d;' \
 
148
        | sort | uniq > $@
 
149
 
 
150
#
 
151
# Cleanup dependencies
 
152
#
 
153
 
 
154
clean:          clean-recursive         clean-top
 
155
distclean:      distclean-recursive     distclean-top
 
156
realclean:      realclean-recursive     realclean-top
 
157
 
 
158
clean-top:
 
159
        $(RM) *~ *.bak $(DISTNAME).tar.gz
 
160
        $(RM) -r .libs
 
161
 
 
162
distclean-top: clean-top
 
163
        $(RM) Makefile config.status config.log config.cache libtool stamp-h
 
164
        $(RM) -r autom4te.cache
 
165
 
 
166
realclean-top: distclean-top
 
167
        $(RM) configure configure.bat
 
168
 
 
169
clean-recursive distclean-recursive realclean-recursive:
 
170
        for subdir in $(SUBDIRS); do \
 
171
           target=`echo $@ | sed s/-recursive//`; \
 
172
           (cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \
 
173
        done
 
174
 
 
175
#
 
176
# Dependencies for maintenance
 
177
#
 
178
 
 
179
Makefile: Makefile.in config.status
 
180
        CONFIG_HEADERS= ./config.status
 
181
 
 
182
config.status: configure
 
183
        ./config.status --recheck
 
184
 
 
185
configure: configure.in aclocal.m4
 
186
        cd $(srcdir) && autoconf
 
187
 
 
188
src/config.h: stamp-h
 
189
stamp-h: src/config.h.in config.status
 
190
        CONFIG_FILES= CONFIG_HEADERS=src/config.h ./config.status
 
191
 
 
192
src/config.h.in: stamp-h.in
 
193
stamp-h.in: configure.in aclocal.m4
 
194
        echo timestamp > $@
 
195
 
 
196
FORCE:
 
197