Skip to content
This repository has been archived by the owner on Dec 19, 2021. It is now read-only.

now complains if apxs is not installed #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down