]> sjero.net Git - wget/blob - windows/Makefile.top.bor
[svn] Initial revision
[wget] / windows / Makefile.top.bor
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 RM = del
19 CP = copy
20
21 # flags passed to recursive makes in subdirectories
22
23 # subdirectories in the distribution
24 SUBDIRS = src doc #util
25
26 # default target
27 all: Makefile $(SUBDIRS)
28
29 $(SUBDIRS): 
30         cd $@
31         $(MAKE)
32         cd ..
33
34 # install everything
35 install:
36         echo Just do it.
37
38 clean:          clean-recursive         clean-top
39 distclean:      distclean-recursive     distclean-top
40 realclean:      realclean-recursive     realclean-top
41
42 clean-top:
43         $(RM) *.bak
44         $(RM) *.zip
45
46 distclean-top: clean-top
47         $(RM) Makefile
48         $(RM) config.h
49
50 realclean-top: distclean-top
51
52 clean-recursive distclean-recursive realclean-recursive:
53         cd src
54         $(MAKE) $(@:-recursive=)
55         cd ..\\doc
56         $(MAKE) $(@:-recursive=)
57         cd ..
58
59 bindist: wget.zip
60
61 wget.zip: $(SUBDIRS)
62         $(RM) wget.zip
63         zip -Djl9 wget.zip AUTHORS COPYING INSTALL MACHINES MAILING-LIST NEWS README DOC\\sample.wgetrc
64         zip -Dj9 wget.zip SRC\\WGET.EXE DOC\\WGET.HLP
65