# $Id: Makefile.in,v 1.6 2005/11/03 01:12:55 bhockney Exp $ include ./Rules.make SUBDIRS= HTML_DOC_ROOT=/Library/WebServer/Documents all: @if sed -n -e 's,@sysconfdir\@,$(sysconfdir),' \ -e 's,@bindir\@,$(bindir),' \ -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),' \ -e 'w ./webfwlog/include/config.php' \ ./webfwlog/include/config.php.in ; \ then : else exit 1; fi; @if sed -n -e 's,@bindir\@,$(bindir),' \ -e 'w ./webfwlog.conf' \ ./webfwlog.conf.in ; \ then : else exit 1; fi; @for d in $(SUBDIRS); do cd $$d; if $(MAKE) $@; then :; else exit 1; fi; cd ..; done; install: all @if [ -f $(DESTDIR)$(sysconfdir)/webfwlog.conf ]; \ then \ if $(INSTALL_DATA) webfwlog.conf $(DESTDIR)$(sysconfdir)/webfwlog.conf.new; \ then :; else exit 1; fi; \ echo installed $(DESTDIR)$(sysconfdir)/webfwlog.conf as webfwlog.conf.new; \ else \ if $(INSTALL_DIR) $(DESTDIR)$(sysconfdir) \ && $(INSTALL_DATA) webfwlog.conf $(DESTDIR)$(sysconfdir)/webfwlog.conf; \ then :; else exit 1; fi; \ echo installed $(DESTDIR)$(sysconfdir)/webfwlog.conf; \ fi @if [ -d $(DESTDIR)$(HTML_DOC_ROOT) ]; \ then \ if $(INSTALL_DIR) -d $(DESTDIR)$(HTML_DOC_ROOT)/webfwlog \ && $(INSTALL_SCRIPT) -d $(DESTDIR)$(HTML_DOC_ROOT)/webfwlog/include; \ then :; else exit 1; fi; \ if $(INSTALL_DATA) webfwlog/index.php $(DESTDIR)$(HTML_DOC_ROOT)/webfwlog; \ then :; else exit 1; fi; \ if $(INSTALL_DATA) webfwlog/style.css $(DESTDIR)$(HTML_DOC_ROOT)/webfwlog; \ then :; else exit 1; fi; \ if $(INSTALL_DATA) webfwlog/include/*.php $(DESTDIR)$(HTML_DOC_ROOT)/webfwlog/include; \ then :; else exit 1; fi; \ echo installed webfwlog in $(DESTDIR)$(HTML_DOC_ROOT)/webfwlog; \ else \ echo $(DESTDIR)$(HTML_DOC_ROOT) is not a directory ; \ exit 1; \ fi @for d in $(SUBDIRS); do cd $$d; if $(MAKE) $@; then :; else exit 1; fi; cd ..; done; @echo webfwlog installed uninstall: @if rm -rf $(HTML_DOC_ROOT)/webfwlog ; then :; else exit 1; fi; @for d in $(SUBDIRS); do cd $$d; if $(MAKE) $@; then :; else exit 1; fi; cd ..; done; @echo webfwlog uninstalled clean: @for d in $(SUBDIRS); do cd $$d; if $(MAKE) $@; then :; else exit 1; fi; cd ..; done; distclean: clean @for d in $(SUBDIRS); do cd $$d; if $(MAKE) $@; then :; else exit 1; fi; cd ..; done; @rm -rf config.h Makefile Rules.make config.status config.log webfwlog.conf \ webfwlog/include/config.php autom4te.cache maintainer-clean: distclean @echo 'This command is intended for maintainers to use; it' @echo 'deletes files that may need special tools to rebuild.' @rm -f ./syslog/getdate.c @rm -f ./syslog/netfilter.c @rm -f ./syslog/ipchains.c @rm -f ./syslog/ipfilter.c @rm -f ./syslog/ipfw.c