Update a log message I missed in 1.80.
[privoxy.git] / Makefile
1 # $Id: Makefile,v 1.5.2.2 2002/10/25 02:44:23 hal9 Exp $
2 #
3 # Written by and Copyright (C) 2001 the SourceForge
4 # Privoxy team. http://www.privoxy.org/
5 #
6 # Based on the Internet Junkbuster originally written
7 # by and Copyright (C) 1997 Anonymous Coders and 
8 # Junkbusters Corporation.  http://www.junkbusters.com
9 #
10 # This program is free software; you can redistribute it 
11 # and/or modify it under the terms of the GNU General
12 # Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at
14 # your option) any later version.
15 #
16 # This program is distributed in the hope that it will
17 # be useful, but WITHOUT ANY WARRANTY; without even the
18 # implied warranty of MERCHANTABILITY or FITNESS FOR A
19 # PARTICULAR PURPOSE.  See the GNU General Public
20 # License for more details.
21 #
22 # The GNU General Public License should be included with
23 # this file.  If not, you can view it at
24 # http://www.gnu.org/copyleft/gpl.html
25 # or write to the Free Software Foundation, Inc., 59
26 # Temple Place - Suite 330, Boston, MA  02111-1307, USA.
27 #
28 # $Log: Makefile,v $
29 # Revision 1.5.2.2  2002/10/25 02:44:23  hal9
30 # Port of make install, etc from main trunk. Needs testing! Add Slackware
31 # support, and other related changes. Update related docs.
32 #
33 # Revision 1.5.2.1  2002/08/05 17:46:13  oes
34 # Change make to gmake to fix auto-build on Solaris
35 #
36 # Revision 1.5  2002/04/11 12:51:34  oes
37 # Bugfix
38 #
39 # Revision 1.4  2002/04/09 16:38:10  oes
40 # Added option to run the whole build process
41 #
42 # Revision 1.3  2002/03/26 22:29:54  swa
43 # we have a new homepage!
44 #
45 # Revision 1.2  2002/03/24 13:25:42  swa
46 # name change related issues
47 #
48 # Revision 1.1  2001/12/01 11:24:29  jongfoster
49 # Will display a warning if non-GNU make is used
50 #
51 #
52
53 #############################################################################
54
55 GNU_MAKE_CMD = gmake
56 MAKE_CMD     = make
57
58 error:
59         @if [ -f GNUmakefile ]; then \
60             echo "***"; \
61             echo "*** You are not using the GNU version of Make - maybe it's called gmake"; \
62             echo "*** or it's in a different PATH? Please read INSTALL." ; \
63             echo "***"; \
64             exit 1; \
65          elif test -n "$(HOST_ARCH)"  && test -z "$(MAKE_VERSION)" ; then \
66             echo "***"; \
67             echo "*** You are not using GNU Make on Solaris, please make sure you do" ; \
68             echo "*** and re-run 'make' "; \
69             echo "***"; \
70             exit 1 ; \
71          elif test -n "$(MACHINE_ARCH)"  && test -z "$(MAKE_VERSION)" ; then \
72             echo "***"; \
73             echo "*** You are not using GNU Make on FreeBSD, please make sure you do" ; \
74             echo "*** and re-run 'make' "; \
75             echo "***"; \
76             exit 1 ; \
77          else \
78             echo "***"; \
79             echo "*** To build this program, you must run"; \
80             echo "*** autoheader && autoconf && ./configure and then run GNU make."; \
81             echo "***"; \
82             echo -n "*** Shall I do this for you now? (y/n) "; \
83             read answer; \
84             if [ "$$answer" = "y" ]; then \
85                 autoheader && autoconf && ./configure || exit 1; \
86                 if $(GNU_MAKE_CMD) -v |grep GNU >/dev/null 2>/dev/null; then \
87                    $(GNU_MAKE_CMD) ;\
88                 elif $(MAKE_CMD) -v |grep GNU >/dev/null 2>/dev/null; then \
89                    $(MAKE_CMD) ;\
90                 else \
91                    echo "Neither 'make' nor 'gmake' are GNU compatible!" ; \
92                    echo "Please read INSTALL." ; \
93                    exit 1 ; \
94                 fi ;\
95             fi; \
96          fi
97
98 .PHONY: error
99
100 #############################################################################
101
102 ## Local Variables:
103 ## tab-width: 3
104 ## end: