Log complete https request lines with LOG_LEVEL_CLF
[privoxy.git] / Makefile
1 # Written by and Copyright (C) 2001 the
2 # Privoxy team. https://www.privoxy.org/
3 #
4 # Based on the Internet Junkbuster originally written
5 # by and Copyright (C) 1997 Anonymous Coders and 
6 # Junkbusters Corporation.  http://www.junkbusters.com
7 #
8 # This program is free software; you can redistribute it 
9 # and/or modify it under the terms of the GNU General
10 # Public License as published by the Free Software
11 # Foundation; either version 2 of the License, or (at
12 # your option) any later version.
13 #
14 # This program is distributed in the hope that it will
15 # be useful, but WITHOUT ANY WARRANTY; without even the
16 # implied warranty of MERCHANTABILITY or FITNESS FOR A
17 # PARTICULAR PURPOSE.  See the GNU General Public
18 # License for more details.
19 #
20 # The GNU General Public License should be included with
21 # this file.  If not, you can view it at
22 # http://www.gnu.org/copyleft/gpl.html
23 # or write to the Free Software Foundation, Inc., 59
24 # Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25 #
26 #############################################################################
27
28 GNU_MAKE_CMD = gmake
29 MAKE_CMD     = make
30
31 error:
32         @if [ -f GNUmakefile ]; then \
33             echo "***"; \
34             echo "*** You are not using the GNU version of Make - maybe it's called gmake"; \
35             echo "*** or it's in a different PATH? Please read INSTALL." ; \
36             echo "***"; \
37             exit 1; \
38          elif test -n "$(HOST_ARCH)"  && test -z "$(MAKE_VERSION)" ; then \
39             echo "***"; \
40             echo "*** You are not using GNU Make on Solaris, please make sure you do" ; \
41             echo "*** and re-run 'make' "; \
42             echo "***"; \
43             exit 1 ; \
44          elif test -n "$(MACHINE_ARCH)"  && test -z "$(MAKE_VERSION)" ; then \
45             echo "***"; \
46             echo "*** You are not using GNU Make on FreeBSD, please make sure you do" ; \
47             echo "*** and re-run 'make' "; \
48             echo "***"; \
49             exit 1 ; \
50          else \
51             echo "***"; \
52             echo "*** To build this program, you must run"; \
53             echo "*** autoheader && autoconf && ./configure and then run GNU make."; \
54             echo "***"; \
55             echo -n "*** Shall I do this for you now? (y/n) "; \
56             read answer; \
57             if [ "$$answer" = "y" ]; then \
58                 autoheader && autoconf && ./configure || exit 1; \
59                 if $(GNU_MAKE_CMD) -v |grep GNU >/dev/null 2>/dev/null; then \
60                    $(GNU_MAKE_CMD) ;\
61                 elif $(MAKE_CMD) -v |grep GNU >/dev/null 2>/dev/null; then \
62                    $(MAKE_CMD) ;\
63                 else \
64                    echo "Neither 'make' nor 'gmake' are GNU compatible!" ; \
65                    echo "Please read INSTALL." ; \
66                    exit 1 ; \
67                 fi ;\
68             fi; \
69          fi
70
71 .PHONY: error
72
73 #############################################################################
74
75 ## Local Variables:
76 ## tab-width: 3
77 ## end: