-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
87 lines (67 loc) · 3.65 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
DIR ?= /tmp/
all: blitz/Units.ice blitz2 blitz3 blitz4 blitz5 formats/UnitsFactory.java model model2 sql xsd
# exclude Angle
units ?= units/ElectricPotential.txt units/Frequency.txt units/Length.txt units/Pressure.txt units/Power.txt units/Temperature.txt units/Time.txt
model_enums ?= model/UnitsElectricPotential.java model/UnitsFrequency.java model/UnitsLength.java model/UnitsPressure.java model/UnitsPower.java model/UnitsTemperature.java model/UnitsTime.java
model_objs ?= model2/ElectricPotential.java model2/Frequency.java model2/Length.java model2/Pressure.java model2/Power.java model2/Temperature.java model2/Time.java
blitz_ice ?= blitz/ElectricPotential.ice blitz/Frequency.ice blitz/Length.ice blitz/Pressure.ice blitz/Power.ice blitz/Temperature.ice blitz/Time.ice
blitz_java ?= blitz/ElectricPotentialI.java blitz/FrequencyI.java blitz/LengthI.java blitz/PressureI.java blitz/PowerI.java blitz/TemperatureI.java blitz/TimeI.java
blitz_py ?= blitz/omero_model_ElectricPotentialI.py blitz/omero_model_FrequencyI.py blitz/omero_model_LengthI.py blitz/omero_model_PressureI.py blitz/omero_model_PowerI.py blitz/omero_model_TemperatureI.py blitz/omero_model_TimeI.py
blitz_cpp ?= blitz/ElectricPotentialI.cpp blitz/FrequencyI.cpp blitz/LengthI.cpp blitz/PressureI.cpp blitz/PowerI.cpp blitz/TemperatureI.cpp blitz/TimeI.cpp
blitz_h ?= blitz/ElectricPotentialI.h blitz/FrequencyI.h blitz/LengthI.h blitz/PressureI.h blitz/PowerI.h blitz/TemperatureI.h blitz/TimeI.h
files: $(units)
model: $(model_enums)
model2: $(model_objs)
sql: sql/UnitsElectricPotential.sql sql/UnitsFrequency.sql sql/UnitsLength.sql sql/UnitsPressure.sql sql/UnitsPower.sql sql/UnitsTemperature.sql sql/UnitsTime.sql
blitz2: $(blitz_ice)
blitz3: $(blitz_java)
blitz4: $(blitz_py)
blitz5: $(blitz_cpp) $(blitz_h)
xsd: xsd/units-conversion.xsl
blitz/Units.ice: $(units)
mkdir -p blitz
./gen.py --combine templates/Units.ice $(units) > $@
formats/UnitsFactory.java: $(units)
mkdir -p formats
./gen.py --combine templates/formats.java $(units) > $@
blitz/%.ice: units/%.txt
mkdir -p blitz
./gen.py templates/blitz.ice $< > $@
blitz/%I.java: units/%.txt
mkdir -p blitz
./gen.py templates/blitz.java $< > $@
blitz/omero_model_%I.py: units/%.txt
mkdir -p blitz
./gen.py templates/blitz.py $< > $@
blitz/%I.cpp: units/%.txt
mkdir -p blitz
./gen.py templates/blitz.cpp $< > $@
blitz/%I.h: units/%.txt
mkdir -p blitz
./gen.py templates/blitz.h $< > $@
model/Units%.java: units/%.txt
mkdir -p model
./gen.py templates/model $< > $@
model2/%.java: units/%.txt
mkdir -p model2
./gen.py templates/model.java $< > $@
sql/Units%.sql: units/%.txt
mkdir -p sql
./gen.py templates/sql $< > $@
xsd/units-conversion.xsl: $(units)
mkdir -p xsd
./gen.py --markup --combine templates/xsd $(units) > $@
move:
/bin/mv $(model_enums) $(DIR)/components/model/src/ome/model/enums
/bin/mv $(model_objs) $(DIR)/components/model/src/ome/model/units
/bin/mv $(blitz_ice) $(DIR)/components/blitz/resources/omero/model/
/bin/mv $(blitz_java) $(DIR)/components/blitz/src/omero/model/
/bin/mv blitz/Units.ice $(DIR)/components/blitz/resources/omero/model
/bin/mv $(blitz_py) $(DIR)/components/tools/OmeroPy/src
/bin/mv $(blitz_cpp) $(DIR)/components/tools/OmeroCpp/src/omero/model
/bin/mv $(blitz_h) $(DIR)/components/tools/OmeroCpp/src/omero/model
bfmove:
/bin/mv xsd/units-conversion.xsl $(BFDIR)/components/specification/transforms
clean:
rm -rf blitz formats model model2 sql xsd
.PHONY: sql files model clean mov