Fix building the client from the staff_client directory with a reasonable default...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 19 Oct 2007 19:04:30 +0000 (19:04 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 19 Oct 2007 19:04:30 +0000 (19:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7898 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/Makefile

index 11f3e00..9592a9c 100644 (file)
@@ -1,7 +1,12 @@
 # ILS/Open-ILS/xul/staff_client/Makefile
 
 export STAFF_CLIENT_BUILD_ID = $$(/bin/cat build/BUILD_ID)
-export OPENSRF_JSLIBS = $(OPENSRF_LIBS)/javascript
+ifeq ($(origin $(OPENSRF_LIBS)), undefined)
+       # Reasonable default when making the client outside of the root dir
+       OPENSRF_JSLIBS := "/openils/lib/javascript"
+else
+       OPENSRF_JSLIBS := "$(OPENSRF_LIBS)/javascript"
+endif
 
 all: build 
        @echo