]> sjero.net Git - wget/blob - windows/Makefile.top
[svn] Merge of fix for bugs 20341 and 20410.
[wget] / windows / Makefile.top
1 # Makefile for `Wget' utility
2 # Copyright (C) 1995, 1996, 1997, 2004 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 3 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, see <http://www.gnu.org/licenses/>.
16
17 # In addition, as a special exception, the Free Software Foundation
18 # gives permission to link the code of its release of Wget with the
19 # OpenSSL project's "OpenSSL" library (or with modified versions of it
20 # that use the same license as the "OpenSSL" library), and distribute
21 # the linked executables.  You must obey the GNU General Public License
22 # in all respects for all of the code used other than "OpenSSL".  If you
23 # modify this file, you may extend this exception to your version of the
24 # file, but you are not obligated to do so.  If you do not wish to do
25 # so, delete this exception statement from your version.
26
27 RM = -del
28 CP = copy
29
30 # flags passed to recursive makes in subdirectories
31
32 # subdirectories in the distribution
33 SUBDIRS = src doc #util
34
35 # default target
36 all: Makefile $(SUBDIRS)
37
38 $(SUBDIRS): FORCE
39         cd $@
40         $(MAKE)
41         cd ..
42
43 FORCE:
44
45 # install everything
46 install:
47         echo Just do it.
48
49 clean:          clean-recursive         clean-top
50 distclean:      distclean-recursive     distclean-top
51 realclean:      realclean-recursive     realclean-top
52
53 clean-top:
54         $(RM) *.bak
55         $(RM) *.zip
56
57 distclean-top: clean-top
58         $(RM) Makefile
59         $(RM) config.h
60
61 realclean-top: distclean-top
62
63 clean-recursive distclean-recursive realclean-recursive:
64         cd src
65         $(MAKE) $(@:-recursive=)
66         cd ..\\doc
67         $(MAKE) $(@:-recursive=)
68         cd ..
69
70 bindist: wget.zip
71
72 wget.zip: $(SUBDIRS)
73         $(RM) wget.zip
74         $(RM) cacert.pem
75         src\wget http://curl.haxx.se/ca/cacert.pem
76         zip -Djl9 wget.zip AUTHORS COPYING INSTALL MAILING-LIST NEWS README doc/sample.wgetrc 
77         zip -Dj9 wget.zip src/wget.exe doc/wget.hlp cacert.pem 
78         zip -Dj9 wget.zip c:\openssl\bin\libeay32.dll c:\openssl\bin\ssleay32.dll c:\openssl\bin\msvcr80.dll