#   the used tools
APXS=/usr/sbin/apxs
#APACHECTL=apachectl
APACHECTL=/etc/rc.d/init.d/httpd
INSTALLMOD=$(APXS) -i -a


all: code-c binary

code-c: code-c-recursive 

binary: binary-recursive

install: all install-recursive

##data install install-sql install-js install-so clean
install-sql install-js install-so clean \
code-c-recursive binary-recursive data-recursive \
all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive  \
check-recursive installcheck-recursive info-recursive dvi-recursive:
	@set fnord $(MAKEFLAGS); amf=$$2; \
	dot_seen=no; \
	target=`echo $@ | sed s/-recursive//`; \
	list=`cat MODULES`; for subdir in $$list; do \
	 if test -d $$subdir; then \
	  echo "Making $$target in $$subdir"; \
	  local_target="$$target"; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	 fi \
	done;

reload: install
	$(APACHECTL) restart

