Commit in LCDetectors on MAIN
Makefile+71.7 -> 1.8
JM: Add check for compact description before working on DETECTOR.

LCDetectors
Makefile 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- Makefile	6 Sep 2006 18:24:37 -0000	1.7
+++ Makefile	16 Sep 2006 22:42:48 -0000	1.8
@@ -32,6 +32,13 @@
 
 ifdef DETECTOR
 
+# Check for a compact description before doing anything.
+detcheck=$(shell if [ ! -e detectors/$(DETECTOR)/compact.xml ]; then echo "no"; else echo "yes"; fi)
+
+ifeq ($(detcheck),no)
+$(error FATAL ERROR: Check for compact description at ./detectors/$(DETECTOR)/compact.xml failed!)
+endif
+
 .PHONY: build update zip lcdd cvs_commit mkdir template properties new
 
 build: lcdd zip
CVSspam 0.2.8