LCDetectors
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