Project

General

Profile

« Previous | Next » 

Revision 4688

mappings/Makefile: Removed no longer used self maps, because the new automapping mechanism does not use them

View differences:

mappings/VegCore.self.csv
1
VegCore,VegCore
2
acidity,acidity
3
authorStemCode,authorStemCode
4
basalDiameter,basalDiameter
5
baseSaturation,baseSaturation
6
calcium,calcium
7
canopyForm,canopyForm
8
canopyPosition,canopyPosition
9
carbon,carbon
10
catalogNumber,catalogNumber
11
cationExchangeCapacity,cationExchangeCapacity
12
censusNumber,censusNumber
13
class,class
14
clay,clay
15
collectionCode,collectionCode
16
collectionID,collectionID
17
communityID,communityID
18
communityName,communityName
19
conductivity,conductivity
20
continent,continent
21
coordinatePrecision,coordinatePrecision
22
coordinateUncertaintyInMeters,coordinateUncertaintyInMeters
23
country,country
24
county,county
25
coverPercent,coverPercent
26
cultivated,cultivated
27
dateCollected,dateCollected
28
dateIdentified,dateIdentified
29
dayCollected,dayCollected
30
dayIdentified,dayIdentified
31
decimalLatitude,decimalLatitude
32
decimalLongitude,decimalLongitude
33
diameterBreastHeight,diameterBreastHeight
34
diameterBreastHeightGentry,diameterBreastHeightGentry
35
endDate,endDate
36
establishmentMeans,establishmentMeans
37
eventDate,eventDate
38
eventID,eventID
39
family,family
40
fieldNotes,fieldNotes
41
fieldNumber,fieldNumber
42
footprintWKT,footprintWKT
43
genus,genus
44
growthForm,growthForm
45
habitat,habitat
46
height,height
47
heightFirstBranch,heightFirstBranch
48
identificationQualifier,identificationQualifier
49
identifiedBy,identifiedBy
50
individualCount,individualCount
51
individualID,individualID
52
infraspecificEpithet,infraspecificEpithet
53
institutionCode,institutionCode
54
kingdom,kingdom
55
landform,landform
56
lianaInfestation,lianaInfestation
57
locality,locality
58
locationID,locationID
59
magnesium,magnesium
60
maxSlopeAspect,maxSlopeAspect
61
maxSlopeGradient,maxSlopeGradient
62
maximumDepthInMeters,maximumDepthInMeters
63
maximumElevationInMeters,maximumElevationInMeters
64
minSlopeAspect,minSlopeAspect
65
minSlopeGradient,minSlopeGradient
66
minimumDepthInMeters,minimumDepthInMeters
67
minimumElevationInMeters,minimumElevationInMeters
68
monthCollected,monthCollected
69
monthIdentified,monthIdentified
70
nitrogen,nitrogen
71
occurrenceID,occurrenceID
72
order,order
73
organic,organic
74
organismX,organismX
75
organismY,organismY
76
ph,ph
77
phosphorus,phosphorus
78
phylum,phylum
79
plotArea,plotArea
80
plotName,plotName
81
plotNotes,plotNotes
82
potassium,potassium
83
precipitation,precipitation
84
previousTag,previousTag
85
projectID,projectID
86
projectName,projectName
87
recordNumber,recordNumber
88
recordedBy,recordedBy
89
recordedBy.givenName,recordedBy.givenName
90
recordedBy.surName,recordedBy.surName
91
samplingProtocol,samplingProtocol
92
sand,sand
93
scientificName,scientificName
94
scientificNameAuthorship,scientificNameAuthorship
95
sex,sex
96
silt,silt
97
slopeAspect,slopeAspect
98
slopeGradient,slopeGradient
99
sodium,sodium
100
specificEpithet,specificEpithet
101
startDate,startDate
102
stateProvince,stateProvince
103
stemCount,stemCount
104
stemID,stemID
105
stemNotes,stemNotes
106
subplot,subplot
107
subplotID,subplotID
108
subplotX,subplotX
109
subplotY,subplotY
110
tag,tag
111
taxonOccurrenceID,taxonOccurrenceID
112
taxonRank,taxonRank
113
taxonRemarks,taxonRemarks
114
temperature,temperature
115
texture,texture
116
verbatimClass,verbatimClass
117
verbatimElevation,verbatimElevation
118
verbatimFamily,verbatimFamily
119
verbatimGenus,verbatimGenus
120
verbatimGrowthForm,verbatimGrowthForm
121
verbatimIdentificationQualifier,verbatimIdentificationQualifier
122
verbatimInfraspecificEpithet,verbatimInfraspecificEpithet
123
verbatimKingdom,verbatimKingdom
124
verbatimLatitude,verbatimLatitude
125
verbatimLocality,verbatimLocality
126
verbatimLongitude,verbatimLongitude
127
verbatimOrder,verbatimOrder
128
verbatimPhylum,verbatimPhylum
129
verbatimScientificName,verbatimScientificName
130
verbatimScientificNameAuthorship,verbatimScientificNameAuthorship
131
verbatimSpecificEpithet,verbatimSpecificEpithet
132
volumeCanopy,volumeCanopy
133
voucherType,voucherType
134
yearCollected,yearCollected
135
yearIdentified,yearIdentified
mappings/Makefile
11 11
inputCoreMaps := Veg+.terms.csv Veg+-VegCore.csv VegCore-VegBIEN.csv \
12 12
VegX-VegCore.csv
13 13

  
14
# Via formats
15
coreMaps := $(wildcard *-VegBIEN.csv)
16
filenameVia = $(shell echo '$(1)'|grep --only-matching --extended-regexp\
17
'^[a-zA-Z+]+')
18
# can't use --ignore-case because in Mac grep, a bug causes it to break [] exprs
19
vias := $(strip $(sort $(foreach coreMap,$(coreMaps),$(call\
20
filenameVia,$(coreMap)))))
21

  
22 14
# Commands
23 15

  
24 16
review_ = $(bin)/review 1 <$(1) >for_review/$(1)
25 17
review = $(call review_,$@)
26 18

  
27
join = env header_num=0 $(bin)/join_union_sort
28
selfMap_ = $(bin)/cols 0 0
29
mkSelfMap = $(selfMap_) <$<|$(bin)/sort_map >$@
30

  
31 19
##### General targets
32 20

  
33
all: _always $(inputCoreMaps) vegcsv_maps self_maps ;
21
all: _always $(inputCoreMaps) vegcsv_maps ;
34 22

  
35 23
clean: _always
36 24
	$(RM) $(all)
......
55 43
	$(MAKE) $(@:%=.%.last_cleanup)
56 44
endif
57 45

  
58
##### Self maps
59

  
60
selfMaps :=
61

  
62
viaCoreMap = $(via)-VegBIEN.csv
63
viaSelfMap = $(via).self.csv
64
viaCoreMaps = $(wildcard $(subst %,*,$(viaCoreMap)))
65

  
66
define selfMapTargets
67
selfMaps += $(viaCoreMaps:$(viaCoreMap)=$(viaSelfMap))
68

  
69
$(viaSelfMap): $(viaCoreMap)
70
	$$(mkSelfMap)
71
endef
72
$(foreach via,$(vias),$(eval $(selfMapTargets)))
73

  
74
ifneq ($(filter self_maps,$(MAKECMDGOALS)),)
75
self_maps: _always $(selfMaps) ;
76
else
77
self_maps: _always
78
	$(MAKE) self_maps
79
# re-run make so that cache of existing files for $(viaCoreMaps) is reset
80
endif
81

  
82
all += $(selfMaps)
83

  
84 46
##### VegCSV
85 47

  
86 48
vegcsvMaps :=

Also available in: Unified diff