1 | |
---|
2 | |
---|
3 | targ ?= dreq |
---|
4 | fmt ?= txt |
---|
5 | www ?= /var/www/f |
---|
6 | |
---|
7 | |
---|
8 | .PHONY: config checkSamp schema checkSchema |
---|
9 | |
---|
10 | config: out/$(targ)Sample.xml out/$(targ)Defn.xml checkSamp |
---|
11 | |
---|
12 | configV: out/vocabSample.xml out/vocabDefn.xml checkVSamp |
---|
13 | |
---|
14 | configu: out/dreqUpdSample.xml out/dreqUpdDefn.xml checkSampU |
---|
15 | |
---|
16 | out/dreqUpdSample.xml: ../../docs/dreq.txt ptxt.py |
---|
17 | python ptxt.py -f dreq.txt updsamp |
---|
18 | |
---|
19 | out/dreqUpdDefn.xml: ../../docs/dreq.txt ptxt.py |
---|
20 | python ptxt.py -f dreq.txt upd |
---|
21 | |
---|
22 | out/$(targ)Sample.xml: ../../docs/$(targ).$(fmt) ptxt.py |
---|
23 | python ptxt.py -f $(targ).$(fmt) samp |
---|
24 | |
---|
25 | out/$(targ)Defn.xml: ../../docs/$(targ).$(fmt) ptxt.py |
---|
26 | python ptxt.py -f $(targ).$(fmt) defn |
---|
27 | |
---|
28 | out/vocabSample.xml: ../../docs/vocab.txt ptxt.py |
---|
29 | python ptxt.py -f vocab.txt samp |
---|
30 | |
---|
31 | out/vocabDefn.xml: ../../docs/vocab.txt ptxt.py |
---|
32 | python ptxt.py -f vocab.txt defn |
---|
33 | |
---|
34 | checkVSamp: |
---|
35 | xmllint --noout --schema out/vocabFrameworkSchema.xsd out/vocabDefn.xml |
---|
36 | |
---|
37 | checkSamp: |
---|
38 | xmllint --noout --schema out/vocabFrameworkSchema.xsd out/$(targ)Defn.xml |
---|
39 | |
---|
40 | checkSampU: |
---|
41 | xmllint --noout --schema out/vocabFrameworkSchema.xsd out/dreqUpdDefn.xml |
---|
42 | |
---|
43 | schema: config out/$(targ)Schema.xsd checkSchema |
---|
44 | |
---|
45 | schemaV: configV out/vocabSchema.xsd checkSchemaV |
---|
46 | |
---|
47 | xsd: ../../docs/xlst_xdsSchemaGen.xml config out/$(targ)Defn.xml |
---|
48 | xsltproc ../../docs/xlst_xdsSchemaGen.xml out/$(targ)Defn.xml > out/$(targ)Schema.xsd |
---|
49 | |
---|
50 | out/vocabSchema.xsd: ../../docs/xlst_xdsSchemaGen.xml configV out/vocabDefn.xml |
---|
51 | xsltproc ../../docs/xlst_xdsSchemaGen.xml out/vocabDefn.xml > out/vocabSchema.xsd |
---|
52 | |
---|
53 | checkSchema: |
---|
54 | xmllint --noout --schema out/$(targ)Schema.xsd out/$(targ)Sample.xml |
---|
55 | |
---|
56 | checkSchemaV: |
---|
57 | xmllint --noout --schema out/vocabSchema.xsd out/vocabSample.xml |
---|
58 | |
---|
59 | distrib: 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 /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/docs/ |
---|
73 | cp out/BlockSchema.csv /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy/docs/ |
---|
74 | echo "source copied to /data/tmp/svn3/exarch/CMIP6dreq/trunk/dreqPy" |
---|
75 | |
---|
76 | dirs: |
---|
77 | mkdir -p html html/index html/t html/u tab2 tabs03 html/tt |
---|
78 | |
---|
79 | localHtml: |
---|
80 | cp -r tab2/* $(www)/data/tabs02/ |
---|
81 | cp -r tabs03/* $(www)/tabs03/ |
---|
82 | cp tab01_1_1.html tab01_3_3.html $(www)/ |
---|
83 | cp data2.js $(www)/data/mipVarsData.js |
---|
84 | cp websiteExtras/dreq.css $(www)/css |
---|
85 | cp -r html/u/* $(www)/u/ |
---|
86 | cp -r html/t/* $(www)/t/ |
---|
87 | cp -r html/index/* $(www)/index/ |
---|
88 | cp -r html/index.html $(www)/ |
---|
89 | |
---|
90 | sHtml: |
---|
91 | zip -r html.zip data2.js html |
---|
92 | |
---|