github.com/m3db/m3@v1.5.0/src/aggregator/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 m3db_package := github.com/m3db/m3 6 m3db_package_path := $(gopath_prefix)/$(m3db_package) 7 8 # Generation rule for all generated types 9 .PHONY: genny-all 10 genny-all: genny-aggregator-counter-elem genny-aggregator-timer-elem genny-aggregator-gauge-elem 11 12 .PHONY: genny-aggregator-counter-elem 13 genny-aggregator-counter-elem: 14 cat $(m3db_package_path)/src/aggregator/aggregator/generic_elem.go \ 15 | awk '/^package/{i++}i' \ 16 | genny -out=$(m3db_package_path)/src/aggregator/aggregator/counter_elem_gen.go -pkg=aggregator gen \ 17 "timedAggregation=timedCounter lockedAggregation=lockedCounterAggregation typeSpecificAggregation=counterAggregation typeSpecificElemBase=counterElemBase genericElemPool=CounterElemPool GenericElem=CounterElem" 18 19 .PHONY: genny-aggregator-timer-elem 20 genny-aggregator-timer-elem: 21 cat $(m3db_package_path)/src/aggregator/aggregator/generic_elem.go \ 22 | awk '/^package/{i++}i' \ 23 | genny -out=$(m3db_package_path)/src/aggregator/aggregator/timer_elem_gen.go -pkg=aggregator gen \ 24 "timedAggregation=timedTimer lockedAggregation=lockedTimerAggregation typeSpecificAggregation=timerAggregation typeSpecificElemBase=timerElemBase genericElemPool=TimerElemPool GenericElem=TimerElem" 25 26 .PHONY: genny-aggregator-gauge-elem 27 genny-aggregator-gauge-elem: 28 cat $(m3db_package_path)/src/aggregator/aggregator/generic_elem.go \ 29 | awk '/^package/{i++}i' \ 30 | genny -out=$(m3db_package_path)/src/aggregator/aggregator/gauge_elem_gen.go -pkg=aggregator gen \ 31 "timedAggregation=timedGauge lockedAggregation=lockedGaugeAggregation typeSpecificAggregation=gaugeAggregation typeSpecificElemBase=gaugeElemBase genericElemPool=GaugeElemPool GenericElem=GaugeElem"