1# Makefile for `wget' utility 2# Copyright (C) 1995, 1996, 1997, 2004, 2007, 2008, 2009 Free Software 3# 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 32RM = -del 33CP = copy 34ATTRIB = attrib 35 36MAKEINFO = makeinfo.exe 37TEXI2POD = texi2pod.pl 38POD2MAN = pod2man 39 40SAMPLERCTEXI = sample.wgetrc.munged_for_texi_inclusion 41WGETHLP = wget.hlp 42WGETINFO = wget.info 43WGETTEXI = wget.texi 44WGETHTML = wget.html 45WGETPOD = wget.pod 46manext = 1 47MAN = wget.$(manext) 48 49all: $(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 69man: $(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 79clean: 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 90distclean: clean 91 $(RM) $(WGETHTML) 92 $(RM) $(WGETPOD) 93 $(RM) $(WGETHLP) 94 $(RM) $(WGETINFO) 95 $(RM) $(WGETHLP) 96 $(RM) Makefile 97 98realclean: distclean 99 100