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

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

cleaned scope.py

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