github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/query/generated-source-files.mk (about) 1 SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST))) 2 include $(SELF_DIR)/../../.ci/common.mk 3 4 gopath_prefix := $(GOPATH)/src 5 query_package := github.com/m3db/m3/src/query 6 query_package_path := $(gopath_prefix)/$(query_package) 7 consolidators_package := $(query_package)/storage/m3/consolidators 8 consolidators_package_path := $(gopath_prefix)/$(consolidators_package) 9 m3x_package := github.com/m3db/m3/src/x 10 m3x_package_path := $(gopath_prefix)/$(m3x_package) 11 m3db_package := github.com/m3db/m3 12 m3db_package_path := $(gopath_prefix)/$(m3db_package) 13 14 15 # Generation rule for all generated types 16 .PHONY: genny-all 17 genny-all: genny-map-all 18 19 # Map generation rule for all generated maps 20 .PHONY: genny-map-all 21 genny-map-all: \ 22 genny-map-multi-fetch-result \ 23 genny-map-series-metadata-map \ 24 25 # Map generation rule for query/storage/m3/consolidators/multiFetchResultMap 26 .PHONY: genny-map-multi-fetch-result 27 genny-map-multi-fetch-result: 28 cd $(m3x_package_path) && make hashmap-gen \ 29 pkg=consolidators \ 30 key_type=models.Tags \ 31 value_type=multiResultSeries \ 32 rename_nogen_key=true \ 33 target_package=$(consolidators_package) \ 34 rename_type_prefix=fetchResult 35 # Rename generated map file 36 mv -f $(consolidators_package_path)/map_gen.go $(consolidators_package_path)/fetch_result_map_gen.go 37 38 # Map generation rule for query/graphite/storage/seriesMetadataMap 39 .PHONY: genny-map-series-metadata-map 40 genny-map-series-metadata-map: 41 cd $(m3x_package_path) && make byteshashmap-gen \ 42 pkg=storage \ 43 value_type=seriesMetadata \ 44 target_package=$(query_package)/graphite/storage \ 45 rename_nogen_key=true \ 46 rename_type_prefix=seriesMetadata \ 47 rename_constructor=newSeriesMetadataMap \ 48 rename_constructor_options=seriesMetadataMapOptions 49 # Rename generated map file 50 mv -f $(query_package_path)/graphite/storage/map_gen.go $(query_package_path)/graphite/storage/series_metadata_map_gen.go 51 mv -f $(query_package_path)/graphite/storage/new_map_gen.go $(query_package_path)/graphite/storage/series_metadata_map_new.go