Make building & installing the core components of Evergreen optional.
[Evergreen.git] / Open-ILS / src / apachemods / Makefile.am
index 0a6ea3f..07eecfa 100644 (file)
@@ -7,9 +7,13 @@
 AM_CFLAGS = -D_LARGEFILE64_SOURCE -Wall -I@abs_top_srcdir@/Open-ILS/include/ -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) -I$(APR_HEADERS) -I$(OPENSRF_HEADERS)
 AM_LDFLAGS = -L$(LIBDIR) -L$(OPENSRF_LIBS)
 
 AM_CFLAGS = -D_LARGEFILE64_SOURCE -Wall -I@abs_top_srcdir@/Open-ILS/include/ -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) -I$(APR_HEADERS) -I$(OPENSRF_HEADERS)
 AM_LDFLAGS = -L$(LIBDIR) -L$(OPENSRF_LIBS)
 
-       
+if BUILDAPACHEMODS
+OILSAPACHEINST = apachemods
+endif
 
 
-install-exec-local:
+install-exec-local: $(OILSAPACHEINST)
+
+apachemods:
        $(APXS2) -c $(AM_LDFLAGS) -lxml2 -lopensrf -lxslt -lexpat $(AM_CFLAGS) @srcdir@/mod_xmlent.c
        $(APXS2) -i -a @srcdir@/mod_xmlent.la
 
        $(APXS2) -c $(AM_LDFLAGS) -lxml2 -lopensrf -lxslt -lexpat $(AM_CFLAGS) @srcdir@/mod_xmlent.c
        $(APXS2) -i -a @srcdir@/mod_xmlent.la