summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLuca Berra <bluca@comedia.it>2010-02-28 15:46:16 +0100
committerNeilBrown <neilb@suse.de>2010-03-03 12:23:30 +1100
commitc132678b18c1aeb3f3eaa2ece4aafebd5e2b47a6 (patch)
treedde126ab82ea4ee88f3bbd0dffbf56fa50ef4e3d /Makefile
parent32f217017fd5343ab3c0c564b689b90d0f093bd5 (diff)
downloadmdadm-c132678b18c1aeb3f3eaa2ece4aafebd5e2b47a6.tar.gz
mdadm-c132678b18c1aeb3f3eaa2ece4aafebd5e2b47a6.tar.xz
mdadm-c132678b18c1aeb3f3eaa2ece4aafebd5e2b47a6.zip
allow redefinition of VAR_RUN
having mdmon socket under var is painful at shutdown time Signed-off-by: Luca Berra <bluca@comedia.it> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a23923c..cfe6b92 100644
--- a/Makefile
+++ b/Makefile
@@ -63,8 +63,10 @@ CONFFILEFLAGS = -DCONFFILE=\"$(CONFFILE)\" -DCONFFILE2=\"$(CONFFILE2)\"
# If you don't have /lib/init/rw you might want to use /dev/.something
# e.g. make ALT_RUN=/dev/.mdadm
ALT_RUN = /lib/init/rw
+VAR_RUN = /var/run
ALTFLAGS = -DALT_RUN=\"$(ALT_RUN)\"
-CFLAGS = $(CWFLAGS) $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS) $(ALTFLAGS)
+VARFLAGS = -DVAR_RUN=\"$(VAR_RUN)\"
+CFLAGS = $(CWFLAGS) $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS) $(ALTFLAGS) $(VARFLAGS)
# If you want a static binary, you might uncomment these
# LDFLAGS = -static