-#
-# Makefile for the Squid Object Cache server
-#
-# $Id$
-#
-# Uncomment and customize the following to suit your needs:
-#
SUBDIRS = manuals
DEFAULT_CONFIG_FILE = $(sysconfdir)/squid.conf
-DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf
DEFAULT_MIME_TABLE = $(sysconfdir)/mime.conf
DEFAULT_ERROR_DIR = $(datadir)/errors
-SUBSTITUTE=sed "\
- s%@DEFAULT_CONFIG_FILE@%$(DEFAULT_CONFIG_FILE)%g;\
- s%@DEFAULT_CACHEMGR_CONFIG@%$(DEFAULT_CACHEMGR_CONFIG)%g;\
- s%@DEFAULT_ERROR_DIR@%$(DEFAULT_ERROR_DIR)%g;\
- s%@DEFAULT_MIME_TABLE@%$(DEFAULT_MIME_TABLE)%g;\
- s%@""PACKAGE_STRING""@%$(PACKAGE_STRING)%g;\
- "
+include $(top_srcdir)/doc/manuals/Substitute.am
squid.8: $(srcdir)/squid.8.in Makefile
$(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
-cachemgr.cgi.8: $(srcdir)/cachemgr.cgi.8.in Makefile
- $(SUBSTITUTE) < $(srcdir)/cachemgr.cgi.8.in > $@
-
-man_MANS = \
- squid.8 \
- cachemgr.cgi.8
+man_MANS = squid.8
EXTRA_DIST = \
squid.8.in \
- cachemgr.cgi.8.in \
debug-sections.txt
-CLEANFILES = \
- squid.8 \
- cachemgr.cgi.8
+CLEANFILES = squid.8
-.TH squid 8 "@PACKAGE_STRING@"
+.TH squid 8 "Squid Web Proxy"
.\" Copyright and licensing information
.\" goes here.
.SH NAME
on how to configure
.B squid
see the file
-.BI @DEFAULT_CONFIG_FILE@.documented,
+.BI @SYSCONFDIR@/squid.conf.documented,
the Squid wiki FAQ and examples at
http://wiki.squid-cache.org/ ,
or the configuration manual on the
Write debugging to stderr also.
.IP "-f file"
Use the given config-file instead of
-.IR @DEFAULT_CONFIG_FILE@ .
+.IR @SYSCONFDIR@/squid.conf .
If the file name starts with a ! or | then it is assumed to be an external
command or command line. Can for example be used to pre-process the
configuration before it is being read by Squid. To facilitate this Squid
Remove a Windows Service (see -n option).
.IP -s
Enable logging to syslog. Also configurable in
-.BI @DEFAULT_CONFIG_FILE@
+.BI @SYSCONFDIR@/squid.conf
.IP "-l facility"
Use specified syslog facility. implies -s
.IP "-u port"
Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload.
.SH FILES
-.I @DEFAULT_CONFIG_FILE@
+.I @SYSCONFDIR@/squid.conf
.RS
The main configuration file. You must initially make
changes to this file for
configuration settings and syntax after upgrading.
.RE
-.I @DEFAULT_CONFIG_FILE@.documented
+.I @SYSCONFDIR@/squid.conf.documented
.RS
Reference copy of the configuration file. Always kept up to date with
the version of Squid you are using. Use this to read the documentation
#
#
# Complete Check - everything MUST work at this level
-MAKETEST="distcheck"
+MAKETEST="check"
#
# Default configuration options.
# - Nothing special configured. Just whatever is found by "./configure"
#
-OPTS=""
+OPTS=" --disable-loadable-modules "
#
#
OPTS=" \
- --enable-loadable-modules \
+ --disable-loadable-modules \
--enable-gnuregex \
--enable-optimizations \
--enable-inline \
## we need our local files too (but avoid -I. at all costs)
INCLUDES += -I$(srcdir)
+SUBDIRS =
+EXTRA_DIST =
+man_MANS =
+DISTCLEANFILES =
-SUBDIRS =
+LDADD = \
+ ../compat/libcompat.la \
+ ../src/ip/libip.la \
+ -L../lib -lmiscutil \
+ $(XTRA_LIBS)
-bin_PROGRAMS = \
- squidclient
+include $(top_srcdir)/doc/manuals/Substitute.am
-libexec_PROGRAMS = \
- cachemgr$(CGIEXT)
-man_MANS = \
- squidclient.1
+## ##### squidclient #####
-DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf
+bin_PROGRAMS = squidclient
squidclient_SOURCES = squidclient.cc
+
+EXTRA_DIST += squidclient.1
+man_MANS += squidclient.1
+
+
+
+## ##### cachemgr.cgi #####
+
+DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf
+
+libexec_PROGRAMS = cachemgr$(CGIEXT)
+
cachemgr__CGIEXT__SOURCES = cachemgr.cc
cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS)
-LDADD = \
- ../compat/libcompat.la \
- ../src/ip/libip.la \
- -L../lib -lmiscutil \
- $(XTRA_LIBS)
+EXTRA_DIST += cachemgr.conf cachemgr.cgi.8
+CLEANFILES += cachemgr.cgi.8
+man_MANS += cachemgr.cgi.8
+
+cachemgr.cgi.8: $(srcdir)/cachemgr.cgi.8.in Makefile
+ $(SUBSTITUTE) < $(srcdir)/cachemgr.cgi.8.in > $@
+
-EXTRA_DIST = \
- cachemgr.conf \
- squidclient.1
-$(OBJS): $(top_srcdir)/include/version.h ../include/autoconf.h
+## Shared
install-data-local:
$(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default
uninstall-local:
@$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)
$(RM) -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default
-
-DISTCLEANFILES =
-
-.TH cachemgr.cgi 8 "@PACKAGE_STRING@"
+.TH cachemgr.cgi 8 "Squid Cache Manager CGI Web Interface"
.\" Copyright and licensing information
.\" goes here.
.SH NAME
.SH FILES
.I ./cachemgr.conf
.br
-.I @DEFAULT_CACHEMGR_CONFIG@
+.I @SYSCONFDIR@/cachemgr.conf
.RS
The access configuration file defining which Squid servers may
be managed via this cachemgr.cgi program. Each line specifies a
Squid FAQ.
.SH SEE ALSO
.BR squid "(8)"
+.BR squidclient "(1)"
.br
.BR "The Squid FAQ" ", Chapter 9 The Cache Manager"
.\" Could add the following sections:
-.TH SQUIDCLIENT 1 "Mar 1998" "Squid Cache" "Debian Linux"
+.TH SQUIDCLIENT 1 "Mar 1998" "Squid Web Client Tool"
.SH NAME
squidclient -- client interface to the squid cache
.SH SYNOPSIS