]> sjero.net Git - wget/blob - windows/Makefile.doc
Explicit rules to build en@{quot,boldquot}.po.
[wget] / windows / Makefile.doc
1 # Makefile for `wget' utility
2 # Copyright (C) 1995, 1996, 1997, 2004, 2007,
3 # 2008 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 # You probably need makeinfo and perl, see the README in the main
30 # windows directory.
31
32 RM      = -del
33 CP      = copy
34 ATTRIB  = attrib
35
36 MAKEINFO        = makeinfo.exe
37 TEXI2POD        = texi2pod.pl
38 POD2MAN = pod2man
39
40 SAMPLERCTEXI    = sample.wgetrc.munged_for_texi_inclusion
41 WGETHLP         = wget.hlp
42 WGETINFO        = wget.info
43 WGETTEXI        = wget.texi
44 WGETHTML        = wget.html
45 WGETPOD         = wget.pod
46 manext          = 1
47 MAN             = wget.$(manext)
48
49 all: $(WGETHLP) $(WGETINFO) $(WGETHTML)
50
51 .IGNORE:
52 $(SAMPLERCTEXI): sample.wgetrc
53         perl -pne "s/@/@@/g" < $? > $@
54
55 $(WGETINFO): $(SAMPLERCTEXI) $(WGETTEXI)
56         $(MAKEINFO) --no-validate --no-warn --force \
57 --no-split $(WGETTEXI)
58
59 $(WGETHTML): $(SAMPLERCTEXI) $(WGETTEXI)
60         $(MAKEINFO) --no-validate --no-warn --force \
61 --no-split --html -o $@ $(WGETTEXI)
62
63 $(TEXI2POD): $(TEXI2POD).in
64         $(CP) $? $@
65
66 $(WGETPOD): $(WGETTEXI) $(TEXI2POD)
67         $(TEXI2POD) $(WGETTEXI) $@
68
69 man:    $(MAN)
70
71 $(MAN): $(WGETPOD)
72         $(POD2MAN) --center="GNU Wget" --release="GNU Wget @VERSION@" $? > $@
73
74 $(WGETHLP): $(WGETTEXI) $(SAMPLERCTEXI)
75         $(MAKEINFO) --no-validate --no-warn --force \
76 --hpj wget.hpj --output wget.rtf $(WGETTEXI)
77         hcrtf -xn wget.hpj
78
79 clean:
80         $(RM) *.bak
81         $(RM) *.hpj
82         $(RM) *.rtf
83         $(RM) *.ph
84         $(RM) $(SAMPLERCTEXI)
85         $(RM) $(MAN)
86         $(RM) $(TEXI2POD)
87         $(ATTRIB) -h *.gid
88         $(RM) *.gid
89
90 distclean: clean
91         $(RM) $(WGETHTML)
92         $(RM) $(WGETPOD)
93         $(RM) $(WGETHLP)
94         $(RM) $(WGETINFO)
95         $(RM) $(WGETHLP)
96         $(RM) Makefile
97
98 realclean: distclean
99