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

Line 
1
2
3targ ?= dreq
4fmt ?= txt
5
6
7.PHONY: config checkSamp schema checkSchema
8
9config: out/$(targ)Sample.xml out/$(targ)Defn.xml checkSamp
10
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
21out/$(targ)Sample.xml: ../../docs/$(targ).$(fmt) ptxt.py
22        python ptxt.py -f $(targ).$(fmt) samp
23
24out/$(targ)Defn.xml: ../../docs/$(targ).$(fmt) ptxt.py
25        python ptxt.py -f $(targ).$(fmt) defn
26
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:
34        xmllint --noout --schema out/vocabFrameworkSchema.xsd out/vocabDefn.xml
35
36checkSamp:
37        xmllint --noout --schema out/vocabFrameworkSchema.xsd out/$(targ)Defn.xml
38
39checkSampU:
40        xmllint --noout --schema out/vocabFrameworkSchema.xsd out/dreqUpdDefn.xml
41
42schema: config out/$(targ)Schema.xsd checkSchema
43
44schemaV: configV out/vocabSchema.xsd checkSchemaV
45
46xsd: ../../docs/xlst_xdsSchemaGen.xml config  out/$(targ)Defn.xml
47        xsltproc ../../docs/xlst_xdsSchemaGen.xml out/$(targ)Defn.xml > out/$(targ)Schema.xsd
48
49out/vocabSchema.xsd: ../../docs/xlst_xdsSchemaGen.xml configV  out/vocabDefn.xml
50        xsltproc ../../docs/xlst_xdsSchemaGen.xml out/vocabDefn.xml > out/vocabSchema.xsd
51
52checkSchema:
53        xmllint --noout --schema out/$(targ)Schema.xsd out/$(targ)Sample.xml
54
55checkSchemaV:
56        xmllint --noout --schema out/vocabSchema.xsd out/vocabSample.xml
57
58distrib: out/dreq2Defn.xml  out/dreq2Sample.xml  out/dreq2Schema.xsd
59        cp  out/dreq2Defn.xml  out/dreq2Sample.xml  out/dreq2Schema.xsd  out/vocabFrameworkSchema.xsd /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/docs
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"
62        bash seddreq.sh annotated_20150731.xml dreq.xml dreqPy/dreq.py >  /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/dreq.py
63        bash seddreq02.sh "\.\.\/out" "docs" dreqPy/packageConfig.py > /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/packageConfig.py
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       
65        cp dreqPy/dreqCmdl.py dreqPy/__init__.py dreqPy/simpleCheck.py /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy
66        cp vocabDemo.py /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy   
67        cp makeTables.py vrev.py compare.py /data/tmp/svn3/exarch/CMIP6dreq/trunk/     
68        cp out/annotated_20150731.xml /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/docs/dreq.xml
69        ### cp LICENSE README.txt setup.py setup.cfg /data/tmp/svn3/exarch/CMIP6dreq/trunk/
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/
73        echo "source copied to /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy"
74
75localHtml:
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
79        cp data2.js /var/www/f/data/mipVarsData.js
80        cp websiteExtras/dreq.css /var/www/f/css
81        cp -r html/u/* /var/www/f/u/
82        cp -r html/t/* /var/www/f/t/
83        cp -r html/index/* /var/www/f/index/
84        cp -r html/index.html /var/www/f/
85
86
87sHtml:
88        zip -r html.zip data2.js html
89
Note: See TracBrowser for help on using the repository browser.