From dbe81091ab51979a239f2817f86c3f6d5f0948b5 Mon Sep 17 00:00:00 2001
From: expo <expo@expobox.potato.hut>
Date: Sun, 23 Aug 2009 18:33:38 +0200
Subject: [PATCH] Fix Makefile to generate lengths.dat using cavestats if it's
 not present

---
 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 91a43ba18..c151c884f 100644
--- a/Makefile
+++ b/Makefile
@@ -24,9 +24,11 @@ autogen_pages: indxal.htm
 # built manually in a survex build tree.
 indxal.htm: noinfo/CAVETAB2.CSV noinfo/all.pos noinfo/make-indxal4.pl noinfo/areapage_skeletons/*.html noinfo/lengths.dat
 	python noinfo/make-areaindices.py
-	python noinfo/create_dplong_table.py
 	cd noinfo; perl ./make-indxal4.pl -q CAVETAB2.CSV
 
+noinfo/lengths.dat:
+	python noinfo/create_dplong_table.py
+
 noinfo/all.pos: noinfo/all.3d
 	3dtopos noinfo/all.3d noinfo/all.pos