Enable Python build with regular user to avoid perm problems at clean time.
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Jan 2008 01:01:19 +0000 (01:01 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Jan 2008 01:01:19 +0000 (01:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8340 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/Makefile
Open-ILS/src/python/Makefile
install.sh

index 9e21990..d7782c8 100644 (file)
@@ -8,7 +8,7 @@ export INCDIR = "$(INCLUDEDIR)/openils/"
 
 export STAFF_CLIENT_BUILD_ID = `/bin/cat ../xul/staff_client/build/BUILD_ID`
 
-all:  c_apps client-xul mod_xmlent
+all:  c_apps client-xul mod_xmlent python-build
 
 install:       perl-install python-install web-install server-xul string-templates-install xsl-install c_apps-install circ_rules-install offline-install storage-bootstrap cgi-bootstrap
 
@@ -138,6 +138,12 @@ perl-install:
        mkdir -p $(TEMPLATEDIR)
        cp -r templates/marc $(TEMPLATEDIR)
 
+# ------------------------------------------------------------------------------
+
+python-build:
+       @echo $@
+       make -C python build
+
 # -----------------------------------------------------------------------------------
 
 python-install:
index ec18882..9eafc3c 100644 (file)
@@ -1,16 +1,22 @@
-# vim:noet:ts=4
+# makefile for OpenSRF Python modules and scripts
 
-install: python-install
-
-python-build:
+# ------------------------------------------------------------------------------
+# BUILD
+# ------------------------------------------------------------------------------
+build:
        @echo $@
        python setup.py build
 
-python-install:
+# ------------------------------------------------------------------------------
+# INSTALL
+# ------------------------------------------------------------------------------
+install:       build
        @echo $@
        python setup.py install
 
+# ------------------------------------------------------------------------------
+# CLEAN        
+# ------------------------------------------------------------------------------
 clean:
-       @echo $@
-       rm -fr build
-       find . -name "*.pyc" -exec rm -f {} \;
+       /bin/rm -rf build 
+
index 4abae27..f54fd98 100755 (executable)
@@ -139,7 +139,10 @@ function runInstall {
                                ;;
 
                        "openils_core" )
-                               if building; then $MAKE -C "$OPENILSDIR" "c_apps"; fi;
+                               if building; then 
+                                       $MAKE -C "$OPENILSDIR" "c_apps";
+                                       $MAKE -C "$OPENILSDIR" "python-build";
+                               fi;
                                if installing; then 
                                        $MAKE -C "$OPENILSDIR" "perl-install"; 
                                        $MAKE -C "$OPENILSDIR" "python-install";