source: CMIP6dreqbuild/trunk/src/framework/Makefile @ 554

Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CMIP6dreqbuild/trunk/src/framework/Makefile@554
Revision 554, 3.5 KB checked in by mjuckes, 5 years ago (diff)

further debugging on overview tables; per expt view

RevLine 
[360]1
2
[385]3targ ?= dreq
[493]4fmt ?= txt
[360]5
6
7.PHONY: config checkSamp schema checkSchema
8
[385]9config: out/$(targ)Sample.xml out/$(targ)Defn.xml checkSamp
[360]10
[370]11configV: out/vocabSample.xml out/vocabDefn.xml checkVSamp
12
13configu: out/dreqUpdSample.xml out/dreqUpdDefn.xml checkSampU
14
15out/dreqUpdSample.xml: ../../docs/dreq.txt ptxt.py
16        python ptxt.py -f dreq.txt updsamp
17
18out/dreqUpdDefn.xml: ../../docs/dreq.txt ptxt.py
19        python ptxt.py -f dreq.txt upd
20
[502]21out/$(targ)Sample.xml: ../../docs/$(targ).$(fmt) ptxt.py
[493]22        python ptxt.py -f $(targ).$(fmt) samp
[360]23
[502]24out/$(targ)Defn.xml: ../../docs/$(targ).$(fmt) ptxt.py
[493]25        python ptxt.py -f $(targ).$(fmt) defn
[360]26
[370]27out/vocabSample.xml: ../../docs/vocab.txt ptxt.py
28        python ptxt.py -f vocab.txt samp
29
30out/vocabDefn.xml: ../../docs/vocab.txt ptxt.py
31        python ptxt.py -f vocab.txt defn
32
33checkVSamp:
[526]34        xmllint --noout --schema out/vocabFrameworkSchema.xsd out/vocabDefn.xml
[370]35
[360]36checkSamp:
[526]37        xmllint --noout --schema out/vocabFrameworkSchema.xsd out/$(targ)Defn.xml
[360]38
[370]39checkSampU:
[526]40        xmllint --noout --schema out/vocabFrameworkSchema.xsd out/dreqUpdDefn.xml
[370]41
[385]42schema: config out/$(targ)Schema.xsd checkSchema
[360]43
[370]44schemaV: configV out/vocabSchema.xsd checkSchemaV
45
[385]46xsd: ../../docs/xlst_xdsSchemaGen.xml config  out/$(targ)Defn.xml
47        xsltproc ../../docs/xlst_xdsSchemaGen.xml out/$(targ)Defn.xml > out/$(targ)Schema.xsd
[360]48
[370]49out/vocabSchema.xsd: ../../docs/xlst_xdsSchemaGen.xml configV  out/vocabDefn.xml
50        xsltproc ../../docs/xlst_xdsSchemaGen.xml out/vocabDefn.xml > out/vocabSchema.xsd
51
[360]52checkSchema:
[385]53        xmllint --noout --schema out/$(targ)Schema.xsd out/$(targ)Sample.xml
[370]54
55checkSchemaV:
56        xmllint --noout --schema out/vocabSchema.xsd out/vocabSample.xml
57
[389]58distrib: out/dreq2Defn.xml  out/dreq2Sample.xml  out/dreq2Schema.xsd
[526]59        cp  out/dreq2Defn.xml  out/dreq2Sample.xml  out/dreq2Schema.xsd  out/vocabFrameworkSchema.xsd /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/docs
[470]60        cp  out/vocabDefn.xml  out/vocabSample.xml  out/vocabSchema.xsd vocab.xml  /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/docs
61        echo "docs copied to /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/docs"
[429]62        bash seddreq.sh annotated_20150731.xml dreq.xml dreqPy/dreq.py >  /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/dreq.py
[470]63        bash seddreq02.sh "\.\.\/out" "docs" dreqPy/packageConfig.py > /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/packageConfig.py
[538]64        cp htmlTemplates.py dreqPy/scope.py dreqPy/example.py dreqPy/utilities.py dreqPy/utilP2.py dreqPy/utilP3.py /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy       
[458]65        cp dreqPy/dreqCmdl.py dreqPy/__init__.py dreqPy/simpleCheck.py /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy
[424]66        cp vocabDemo.py /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy   
[539]67        cp makeTables.py vrev.py compare.py /data/tmp/svn3/exarch/CMIP6dreq/trunk/     
[470]68        cp out/annotated_20150731.xml /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/docs/dreq.xml
[449]69        ### cp LICENSE README.txt setup.py setup.cfg /data/tmp/svn3/exarch/CMIP6dreq/trunk/
[470]70        cp tables/test.xlsx /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/docs/CMIP6_MIP_tables.xlsx
71        cp out/dc1.xsd out/xlink.xsd out/xml.xsd /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/docs/
72        cp out/BlockSchema.csv /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/docs/
[424]73        echo "source copied to /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy"
[370]74
[463]75localHtml:
[554]76        cp -r tab2/* /var/www/f/data/tabs02/
77        cp -r tabs03/* /var/www/f/tabs03/
78        cp tab01_1_1.html tab01_3_3.html /var/www/f
[463]79        cp data2.js /var/www/f/data/mipVarsData.js
[523]80        cp websiteExtras/dreq.css /var/www/f/css
[463]81        cp -r html/u/* /var/www/f/u/
[508]82        cp -r html/t/* /var/www/f/t/
[463]83        cp -r html/index/* /var/www/f/index/
84        cp -r html/index.html /var/www/f/
85
[554]86
[493]87sHtml:
88        zip -r html.zip data2.js html
89
Note: See TracBrowser for help on using the repository browser.