2004-09-19 23:22:14 +01:00
|
|
|
# Makefile to run the various scripts needed once CVS updates have been performed.
|
|
|
|
|
2009-07-16 13:23:47 +01:00
|
|
|
dataset_path = ../loser
|
|
|
|
surveydir_path = ../surveys
|
2004-09-19 23:22:14 +01:00
|
|
|
cavern_flags = -qq -s
|
|
|
|
tar_flags = -cz --exclude "*/CVS" --ignore-case -f
|
2004-11-10 09:51:05 +00:00
|
|
|
svxtrace_cmd = ./svxtrace.py
|
2004-09-19 23:22:14 +01:00
|
|
|
|
2009-07-16 13:23:47 +01:00
|
|
|
#things needed to run this stuff
|
|
|
|
#python imaging library, freesans or arial truetype font, dump3d, cavestats
|
|
|
|
#Debian packages: python-imaging, ttf-freefont, perl, python
|
|
|
|
#dump3d needs to be built in configured survex sources with cd src;make dump3d
|
|
|
|
#
|
|
|
|
|
2004-09-19 23:22:14 +01:00
|
|
|
###########
|
|
|
|
|
2006-09-07 03:28:48 +01:00
|
|
|
everything: autogen_pages folklist 3dfiles tarfiles surveytable qmlists prospecting_guide
|
2004-09-19 23:22:14 +01:00
|
|
|
|
|
|
|
###########
|
|
|
|
|
|
|
|
autogen_pages: indxal.htm
|
|
|
|
|
2008-08-06 12:49:50 +01:00
|
|
|
# cavestats should be BUILT AUTOMATICALLY rather than having to be
|
|
|
|
# built manually in a survex build tree.
|
2007-02-21 22:53:55 +00:00
|
|
|
indxal.htm: noinfo/CAVETAB2.CSV noinfo/all.pos noinfo/make-indxal4.pl noinfo/areapage_skeletons/*.html noinfo/lengths.dat
|
2005-06-12 12:31:07 +01:00
|
|
|
python noinfo/make-areaindices.py
|
2008-08-06 12:49:50 +01:00
|
|
|
python noinfo/create_dplong_table.py
|
2004-09-19 23:22:14 +01:00
|
|
|
cd noinfo; perl ./make-indxal4.pl -q CAVETAB2.CSV
|
|
|
|
|
|
|
|
noinfo/all.pos: noinfo/all.3d
|
|
|
|
3dtopos noinfo/all.3d noinfo/all.pos
|
|
|
|
|
|
|
|
###########
|
|
|
|
|
|
|
|
folklist: folk/index.htm
|
|
|
|
|
|
|
|
folk/index.htm: noinfo/folk.csv noinfo/make-folklist.py
|
|
|
|
python noinfo/make-folklist.py < noinfo/folk.csv > folk/index.htm
|
|
|
|
|
|
|
|
###########
|
|
|
|
|
2004-11-25 19:06:45 +00:00
|
|
|
surveytable:
|
2005-05-11 17:43:27 +01:00
|
|
|
cd $(surveydir_path); perl tablize-csv.pl Surveys.csv; perl tablizebyname-csv.pl Surveys.csv --quiet
|
2004-11-22 13:09:10 +00:00
|
|
|
|
|
|
|
|
2004-09-19 23:22:14 +01:00
|
|
|
|
2004-11-10 10:11:27 +00:00
|
|
|
# Output depends on entire contents of the survey tree;
|
|
|
|
# there appears to be no sensible way to run this at need.
|
2004-09-19 23:22:14 +01:00
|
|
|
|
|
|
|
###########
|
|
|
|
|
2005-11-07 15:07:07 +00:00
|
|
|
qmlists: smkridge/204/qm.html smkridge/204/atoz.html smkridge/234/qm.html
|
2004-11-25 19:03:24 +00:00
|
|
|
|
|
|
|
smkridge/204/qm.html: smkridge/204/qm.csv smkridge/204/tablize-qms.pl
|
2004-11-25 19:10:10 +00:00
|
|
|
cd smkridge/204; perl tablize-qms.pl qm.csv
|
2004-11-25 19:03:24 +00:00
|
|
|
|
2005-11-07 15:07:07 +00:00
|
|
|
smkridge/234/qm.html: smkridge/234/qm.csv smkridge/234/tablize-qms.pl
|
|
|
|
cd smkridge/234; perl tablize-qms.pl qm.csv
|
2005-05-19 12:27:10 +01:00
|
|
|
smkridge/204/atoz.html: smkridge/204/glossary.csv smkridge/204/make-glossary.pl
|
|
|
|
cd smkridge/204; perl make-glossary.pl glossary.csv
|
|
|
|
|
2004-11-25 19:03:24 +00:00
|
|
|
###########
|
|
|
|
|
2006-09-07 03:28:48 +01:00
|
|
|
3dfiles: noinfo/all.3d smkridge/204/204.3d smkridge/234/234.3d plateau/76/76.3d noinfo/alltracks.3d
|
2004-09-19 23:22:14 +01:00
|
|
|
|
2004-09-20 22:14:09 +01:00
|
|
|
noinfo/all.3d: $(shell $(svxtrace_cmd) $(dataset_path)/all)
|
2004-09-19 23:22:14 +01:00
|
|
|
cavern $(cavern_flags) $(dataset_path)/all -o noinfo/all.3d
|
|
|
|
|
2004-09-20 22:14:09 +01:00
|
|
|
smkridge/204/204.3d: $(shell $(svxtrace_cmd) $(dataset_path)/caves/204/204)
|
2004-09-19 23:22:14 +01:00
|
|
|
cavern $(cavern_flags) $(dataset_path)/caves/204/204 -o smkridge/204/204.3d
|
|
|
|
|
2004-09-20 22:14:09 +01:00
|
|
|
smkridge/234/234.3d: $(shell $(svxtrace_cmd) $(dataset_path)/caves/234/234)
|
2004-09-19 23:22:14 +01:00
|
|
|
cavern $(cavern_flags) $(dataset_path)/caves/234/234 -o smkridge/234/234.3d
|
|
|
|
|
2004-09-20 22:14:09 +01:00
|
|
|
plateau/76/76.3d: $(shell $(svxtrace_cmd) $(dataset_path)/caves/76/76)
|
2004-09-19 23:22:14 +01:00
|
|
|
cavern $(cavern_flags) $(dataset_path)/caves/76/76 -o plateau/76/76.3d
|
|
|
|
|
2006-09-07 03:28:48 +01:00
|
|
|
noinfo/alltracks.3d: $(shell $(svxtrace_cmd) $(dataset_path)/fixedpts/gps/tracks/alltracks)
|
|
|
|
cavern $(cavern_flags) $(dataset_path)/fixedpts/gps/tracks/alltracks.svx -o noinfo/alltracks.3d
|
|
|
|
|
|
|
|
###########
|
|
|
|
|
|
|
|
prospecting_guide: 3dfiles
|
|
|
|
cd noinfo/prospecting_guide_scripts && python make-prospectingguide-new.py
|
|
|
|
cd noinfo/prospecting_guide_scripts && python make-prospectingguide-new.py --white
|
|
|
|
|
2004-09-19 23:22:14 +01:00
|
|
|
###########
|
|
|
|
|
2005-10-07 23:44:38 +01:00
|
|
|
tarfiles: noinfo/all.tgz smkridge/204/surveydata.tgz smkridge/234/surveydata.tgz plateau/76/surveydata.tgz
|
2004-09-19 23:22:14 +01:00
|
|
|
|
|
|
|
noinfo/all.tgz: noinfo/all.3d
|
2004-09-20 22:14:09 +01:00
|
|
|
tar $(tar_flags) noinfo/all.tgz -C $(dataset_path)/.. loser
|
2004-09-19 23:22:14 +01:00
|
|
|
|
2004-11-25 19:06:45 +00:00
|
|
|
smkridge/204/surveydata.tgz: smkridge/204/204.3d
|
2004-09-20 22:14:09 +01:00
|
|
|
tar $(tar_flags) smkridge/204/surveydata.tgz -C $(dataset_path)/caves/ 204
|
2004-09-19 23:22:14 +01:00
|
|
|
|
2004-11-25 19:06:45 +00:00
|
|
|
smkridge/234/surveydata.tgz: smkridge/234/234.3d
|
2004-09-20 22:14:09 +01:00
|
|
|
tar $(tar_flags) smkridge/234/surveydata.tgz -C $(dataset_path)/caves/ 234
|
2004-09-19 23:22:14 +01:00
|
|
|
|
2004-11-25 19:06:45 +00:00
|
|
|
plateau/76/surveydata.tgz: plateau/76/76.3d
|
2004-09-20 22:14:09 +01:00
|
|
|
tar $(tar_flags) plateau/76/surveydata.tgz -C $(dataset_path)/caves/ 76
|
2004-09-19 23:22:14 +01:00
|
|
|
|
2004-11-25 19:06:45 +00:00
|
|
|
# (tarfiles depend on 3d files to avoid running the
|
2004-09-19 23:22:14 +01:00
|
|
|
# expensive $(shell ...) commands more than necessary.)
|
|
|
|
|
|
|
|
###########
|
|
|
|
|
|
|
|
clean:
|
|
|
|
cut -d "," -f 6 noinfo/CAVETAB2.CSV | xargs rm -f
|
2004-11-25 19:06:45 +00:00
|
|
|
rm -f indxal.htm folk/index.htm noinfo/all.pos
|
2004-09-19 23:22:14 +01:00
|
|
|
rm -f noinfo/all.3d smkridge/204/204.3d smkridge/234/234.3d plateau/76/76.3d
|
2004-11-25 19:06:45 +00:00
|
|
|
rm -f smkridge/204/surveydata.tgz smkridge/234/surveydata.tgz plateau/76/surveydata.tgz noinfo/all.tgz
|
2004-11-10 09:49:34 +00:00
|
|
|
rm -f $(surveydir_path)/surveytable.html
|
2004-09-20 22:14:09 +01:00
|
|
|
rm -f report.html
|
2005-05-16 14:24:21 +01:00
|
|
|
find . -name ".cvsignore" | xargs rm
|
2004-09-19 23:22:14 +01:00
|
|
|
|
|
|
|
###########
|
|
|
|
|
|
|
|
report: everything
|
|
|
|
rm -f report.html
|
2004-09-20 22:14:09 +01:00
|
|
|
bigbro -ohtml report.html -local -fragments -failures -rec .* -ignore ".*/jnl/.*" -ignore ".*/icons/.*" -ignore ".*rdmap.*" -ignore ".*/cp/.*" -ignore ".*/surveys/.*" index.htm
|