[open-ils-commits] [GIT] Evergreen ILS branch master updated. ad0bbbb835fb6185a8b76cc5ae38dd0ec7209cc3

Evergreen Git git at git.evergreen-ils.org
Fri Jun 24 12:22:43 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  ad0bbbb835fb6185a8b76cc5ae38dd0ec7209cc3 (commit)
      from  581fec9d0dcb81e09a2923d8c540ea94fafc47e2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ad0bbbb835fb6185a8b76cc5ae38dd0ec7209cc3
Author: Ben Webb <bjwebb67 at googlemail.com>
Date:   Mon Jun 13 13:31:53 2011 +0100

    Respect DESTDIR during the build process
    
    Add $(DESTDIR) to paths it is currently missing from
    Manually specify the apxs2 install location so that DESTDIR can be prepended
    Attempt to create the apache directory if it does not exist
    
    Signed-off-by: Ben Webb <bjwebb67 at googlemail.com>
    Signed-off-by: Dan Scott <dan at coffeecode.net>

diff --git a/Open-ILS/src/Makefile.am b/Open-ILS/src/Makefile.am
index 7d52ad5..e14f4c2 100644
--- a/Open-ILS/src/Makefile.am
+++ b/Open-ILS/src/Makefile.am
@@ -150,7 +150,7 @@ EXTRA_DIST = @srcdir@/perlmods @srcdir@/templates @top_srcdir@/Open-ILS/xsl @src
 
 # Install header files
 
-oilsincludedir = $(DESTDIR)@includedir@/openils
+oilsincludedir = @includedir@/openils
 headsdir = @top_srcdir@/Open-ILS/include/openils
 oilsinclude_HEADERS = $(headsdir)/idl_fieldmapper.h $(headsdir)/oils_constants.h $(headsdir)/oils_event.h $(headsdir)/oils_idl.h $(headsdir)/oils_utils.h
 
@@ -167,13 +167,13 @@ uninstall-hook:
 #perl-install and string-templates-install	
 ilscore-install:
 	@echo $@
-	$(MKDIR_P) $(TEMPLATEDIR)
-	cp -r @srcdir@/templates/marc $(TEMPLATEDIR)
-	cp -r @srcdir@/templates/password-reset $(TEMPLATEDIR)
-	@echo "Installing string templates to $(TEMPLATEDIR)"
-	$(MKDIR_P) $(TEMPLATEDIR)
-	$(MKDIR_P) $(datadir)/overdue/
-	cp -r @srcdir@/templates/strings $(TEMPLATEDIR)
+	$(MKDIR_P) $(DESTDIR)$(TEMPLATEDIR)
+	cp -r @srcdir@/templates/marc $(DESTDIR)$(TEMPLATEDIR)
+	cp -r @srcdir@/templates/password-reset $(DESTDIR)$(TEMPLATEDIR)
+	@echo "Installing string templates to $(DESTDIR)$(TEMPLATEDIR)"
+	$(MKDIR_P) $(DESTDIR)$(TEMPLATEDIR)
+	$(MKDIR_P) $(DESTDIR)$(datadir)/overdue/
+	cp -r @srcdir@/templates/strings $(DESTDIR)$(TEMPLATEDIR)
 	sed -i 's|LOCALSTATEDIR|@localstatedir@|g' '$(DESTDIR)@sysconfdir@/oils_sip.xml.example'
 	sed -i 's|SYSCONFDIR|@sysconfdir@|g' '$(DESTDIR)@sysconfdir@/oils_sip.xml.example'
 	sed -i 's|LOCALSTATEDIR|@localstatedir@|g' '$(DESTDIR)@sysconfdir@/opensrf_core.xml.example'
diff --git a/Open-ILS/src/apachemods/Makefile.am b/Open-ILS/src/apachemods/Makefile.am
index 5360875..dd1f938 100644
--- a/Open-ILS/src/apachemods/Makefile.am
+++ b/Open-ILS/src/apachemods/Makefile.am
@@ -6,6 +6,7 @@
 
 AM_CFLAGS = -D_LARGEFILE64_SOURCE -Wall -I at 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)
+AP_LIBEXECDIR = `$(APXS2) -q LIBEXECDIR`
 
 if BUILDAPACHEMODS
 OILSAPACHEINST = apachemods
@@ -14,10 +15,11 @@ endif
 install-exec-local: $(OILSAPACHEINST)
 
 apachemods:
+	$(MKDIR_P) $(DESTDIR)$(AP_LIBEXECDIR)
 	$(APXS2) -c $(AM_LDFLAGS) -lxml2 -lopensrf -lxslt -lexpat $(AM_CFLAGS) @srcdir@/mod_xmlent.c
-	$(APXS2) -i -a @srcdir@/mod_xmlent.la
+	$(APXS2) -i -S LIBEXECDIR=$(DESTDIR)$(AP_LIBEXECDIR) -a @srcdir@/mod_xmlent.la
 	$(APXS2) -c $(AM_LDFLAGS) -lxml2 -lopensrf -lxslt -lexpat $(AM_CFLAGS) @srcdir@/mod_idlchunk.c
-	$(APXS2) -i -a @srcdir@/mod_idlchunk.la
+	$(APXS2) -i -S LIBEXECDIR=$(DESTDIR)$(AP_LIBEXECDIR) -a @srcdir@/mod_idlchunk.la
 
 clean-local:
 	rm -f @srcdir@/mod_xmlent.la @srcdir@/mod_xmlent.lo @srcdir@/mod_xmlent.slo
diff --git a/Open-ILS/src/perlmods/Makefile.am b/Open-ILS/src/perlmods/Makefile.am
index 0d27bfa..4f49264 100644
--- a/Open-ILS/src/perlmods/Makefile.am
+++ b/Open-ILS/src/perlmods/Makefile.am
@@ -24,7 +24,7 @@ install: build-perl
 	./Build install
 
 build-perl:
-	perl Build.PL || make -s build-perl-fail
+	perl Build.PL --destdir $(DESTDIR) || make -s build-perl-fail
 
 build-perl-fail:
 	echo
diff --git a/Open-ILS/web/Makefile.am b/Open-ILS/web/Makefile.am
index 6437c73..38c7ac8 100644
--- a/Open-ILS/web/Makefile.am
+++ b/Open-ILS/web/Makefile.am
@@ -8,7 +8,7 @@ opacjsdir = $(DESTDIR)$(WEBDIR)/opac/common/js
 jsdojodir = $(DESTDIR)$(WEBDIR)/js/dojo
 jsdojoosrfdir = $(DESTDIR)$(WEBDIR)/js/dojo/opensrf
 opacextrasdir = $(DESTDIR)$(WEBDIR)/opac/extras/xsl/
-reportsdir = $(DESTDIR)$(WEBDIR)/reports/
+reportsdir = $(WEBDIR)/reports/
 
 if BUILDILSWEB
 OILSWEB_INST = webcore-install offline-install
@@ -63,7 +63,7 @@ offline-install:
 	@echo "Installing offline CGIs to $(CGIDIR)/offline";
 	$(MKDIR_P) $(TMP)
 	$(MKDIR_P) $(DESTDIR)$(CGIDIR)/offline;
-	$(MKDIR_P) $(datadir)/offline;
+	$(MKDIR_P) $(DESTDIR)$(datadir)/offline;
 	perl -pe "s{##CONFIG##}{@sysconfdir@}" < @top_srcdir@/Open-ILS/src/offline/offline.pl > $(TMP)/offline.pl;
 	cp $(TMP)/offline.pl $(DESTDIR)$(CGIDIR)/offline/
 	chmod +x $(DESTDIR)$(CGIDIR)/offline/offline.pl
diff --git a/Open-ILS/xul/staff_client/Makefile.am b/Open-ILS/xul/staff_client/Makefile.am
index 387d9b9..51a61c0 100644
--- a/Open-ILS/xul/staff_client/Makefile.am
+++ b/Open-ILS/xul/staff_client/Makefile.am
@@ -179,12 +179,12 @@ needwebdir:
 
 server-xul: needwebdir build
 	@echo $@
-	mkdir -p $(WEBDIR)
-	mkdir -p $(WEBDIR)/xul/
+	mkdir -p $(DESTDIR)$(WEBDIR)
+	mkdir -p $(DESTDIR)$(WEBDIR)/xul/
 	@echo "STAMP_ID = $(STAFF_CLIENT_STAMP_ID)"
-	@echo "Copying xul into $(WEBDIR)/xul/$(STAFF_CLIENT_STAMP_ID)"
-	mkdir -p "$(WEBDIR)/xul/$(STAFF_CLIENT_STAMP_ID)"
-	cp -R @top_srcdir@/Open-ILS/xul/staff_client/build/server "${WEBDIR}/xul/${STAFF_CLIENT_STAMP_ID}/"
+	@echo "Copying xul into $(DESTDIR)$(WEBDIR)/xul/$(STAFF_CLIENT_STAMP_ID)"
+	mkdir -p "$(DESTDIR)$(WEBDIR)/xul/$(STAFF_CLIENT_STAMP_ID)"
+	cp -R @top_srcdir@/Open-ILS/xul/staff_client/build/server "$(DESTDIR)${WEBDIR}/xul/${STAFF_CLIENT_STAMP_ID}/"
 
 compress-javascript: build
 	@echo "Size of build/ before compression = " `du -sh build/`

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/Makefile.am              |   16 ++++++++--------
 Open-ILS/src/apachemods/Makefile.am   |    6 ++++--
 Open-ILS/src/perlmods/Makefile.am     |    2 +-
 Open-ILS/web/Makefile.am              |    4 ++--
 Open-ILS/xul/staff_client/Makefile.am |   10 +++++-----
 5 files changed, 20 insertions(+), 18 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list