From 0dddcb436d4a2e18aef8ca8496a225c9ebc117c1 Mon Sep 17 00:00:00 2001 From: Francois Serman Date: Tue, 18 Feb 2014 17:12:50 +0100 Subject: [PATCH] now complains if apxs is not installed --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c7bd0ad..c34c943 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ # Makefile for mod_remoteip.c (gmake) APXS=$(shell which apxs || which apxs2) -default: mod_remoteip.o +check: + ifeq ($(APXS),) + $(error apxs not found. Please install apxs) + endif + +default: mod_remoteip.o check mod_remoteip.o: mod_remoteip.c $(APXS) -c -n mod_remoteip.so mod_remoteip.c