From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Wed, 25 Aug 2010 16:38:04 +0000 (+0000)
Subject: tsbere to the rescue for the server-xul make target if in the staff client directory
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e97b06d6ebe5c0abfa8d2b7214bd9b2ea7a46301;p=evergreen%2Fmasslnc.git

tsbere to the rescue for the server-xul make target if in the staff client directory

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17336 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/xul/staff_client/Makefile.am b/Open-ILS/xul/staff_client/Makefile.am
index a92d495f47..700ecbd8f8 100644
--- a/Open-ILS/xul/staff_client/Makefile.am
+++ b/Open-ILS/xul/staff_client/Makefile.am
@@ -143,7 +143,10 @@ custom_skins:
 		if [ ! -f "$$skin" ]; then ( touch build/"$$skin" ); fi \
 	done;
 
-server-xul: build
+needwebdir:
+	@if [ -z "$(WEBDIR)" ]; then echo "!!!--------!!!"; echo "WEBDIR is not set. Must use top level Makefile or set WEBDIR to use this target."; echo "!!!--------!!!"; exit 1; fi
+
+server-xul: needwebdir build
 	@echo $@
 	mkdir -p $(WEBDIR)
 	mkdir -p $(WEBDIR)/xul/