diff --git a/src/Makefile b/src/Makefile index 09b4871..63e130b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,15 +1,13 @@ builddir=. -ifneq (,$(wildcard /usr/share/apache2/build/special.mk)) - top_srcdir=/usr/share/apache2 - top_builddir=/usr/share/apache2 - include /usr/share/apache2/build/special.mk -endif -ifneq (,$(wildcard /usr/lib64/httpd/build/special.mk)) - top_srcdir=/etc/httpd - top_builddir=/usr/lib64/httpd - include /usr/lib64/httpd/build/special.mk -endif +# the used tools +APXS=apxs +APACHECTL=apachectl + +top_builddir=$(shell $(APXS) -q exp_libexecdir) +top_srcdir=$(top_builddir) +include $(top_builddir)/build/special.mk + ifneq (,$(wildcard /etc/debian_version)) DISTRIBUTION := $(shell lsb_release -i | cut -f2) ifeq ($(DISTRIBUTION),Debian) @@ -17,10 +15,6 @@ ifneq (,$(wildcard /etc/debian_version)) endif endif -# the used tools -APXS=apxs -APACHECTL=apachectl - # additional defines, includes and libraries LIBS=-ljson-c -lz