#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.in,v 1.202 2001/05/05 17:49:54 hno Exp $
+# $Id: Makefile.in,v 1.203 2001/08/19 03:49:38 robertc Exp $
#
# Uncomment and customize the following to suit your needs:
#
DEFAULTS = \
-DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\"
-all: squid.conf
+all: squid.conf.default
@for dir in $(SUBDIRS); do \
echo "Making $@ in $$dir..."; \
(cd $$dir ; $(MAKE) $(MFLAGS) prefix="$(prefix)" $@) || exit 1; \
cache_cf.o: cf_parser.c
-squid.conf: cf_parser.c
- @sh -c "test -f squid.conf || ./cf_gen cf.data"
+squid.conf.default: cf_parser.c
+ @sh -c "test -f squid.conf.default || ./cf_gen cf.data"
cf_parser.c: cf.data cf_gen
./cf_gen cf.data
fi; \
done
$(INSTALL_FILE) $(srcdir)/mib.txt $(DEFAULT_MIB_PATH)
- $(INSTALL_FILE) squid.conf $(sysconfdir)/squid.conf.default
+ $(INSTALL_FILE) squid.conf.default $(sysconfdir)/squid.conf.default
@if test -f $(sysconfdir)/squid.conf ; then \
echo "$@ will not overwrite existing $(sysconfdir)/squid.conf" ; \
else \
- echo "$(INSTALL_FILE) squid.conf $(sysconfdir)"; \
- $(INSTALL_FILE) squid.conf $(sysconfdir); \
+ echo "$(INSTALL_FILE) squid.conf.default $(sysconfdir)"; \
+ $(INSTALL_FILE) squid.conf.default $(sysconfdir); \
fi
$(INSTALL_FILE) $(srcdir)/mime.conf $(sysconfdir)/mime.conf.default
clean:
-rm -rf *.o *pure_* core $(PROGS) $(UTILS) $(CGIPROGS) $(SUID_UTILS)
-rm -f cf_gen cf_gen_defines.h cf_parser.c cf.data globals.c string_arrays.c
- -rm -f store_modules.c repl_modules.c auth_modules.c squid.conf
+ -rm -f store_modules.c repl_modules.c auth_modules.c squid.conf.default
@for dir in $(SUBDIRS); do \
echo "Making $@ in $$dir..."; \
(cd $$dir ; $(MAKE) $(MFLAGS) prefix="$(prefix)" $@) || exit 1; \
/*
- * $Id: cf_gen.cc,v 1.40 2001/01/12 00:37:15 wessels Exp $
+ * $Id: cf_gen.cc,v 1.41 2001/08/19 03:49:38 robertc Exp $
*
- * DEBUG: none Generate squid.conf and cf_parser.c
+ * DEBUG: none Generate squid.conf.default and cf_parser.c
* AUTHOR: Max Okumoto
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
/*****************************************************************************
* Abstract: This program parses the input file and generates code and
* files used to configure the variables in squid.
- * (ie it creates the squid.conf file from the cf.data file)
+ * (ie it creates the squid.conf.default file from the cf.data file)
*
* The output files are as follows:
* cf_parser.c - this file contains, default_all() which
* initializes variables with the default
* values, parse_line() that parses line from
- * squid.conf, dump_config that dumps the
+ * squid.conf.default, dump_config that dumps the
* current the values of the variables.
- * squid.conf - default configuration file given to the server
+ * squid.conf.default - default configuration file given to the server
* administrator.
*****************************************************************************/
#define MAX_LINE 1024 /* longest configuration line */
#define _PATH_PARSER "cf_parser.c"
-#define _PATH_SQUID_CONF "squid.conf"
+#define _PATH_SQUID_CONF "squid.conf.default"
enum State {
sSTART,
* Generate parse_line()
* Generate dump_config()
* Generate free_all()
- * Generate example squid.conf file
+ * Generate example squid.conf.default file
*-------------------------------------------------------------------*/
/* Open output x.c file */