Joey Armstrong | e6cdd8e | 2022-12-29 11:58:15 -0500 | [diff] [blame] | 1 | # -*- makefile -*- |
| 2 | # ----------------------------------------------------------------------- |
Joey Armstrong | e66eaaf | 2023-01-15 18:58:52 -0500 | [diff] [blame] | 3 | # Copyright 2019-2023 Open Networking Foundation (ONF) and the ONF Contributors |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
Joey Armstrong | e6cdd8e | 2022-12-29 11:58:15 -0500 | [diff] [blame] | 16 | # ----------------------------------------------------------------------- |
| 17 | |
Joey Armstrong | e66eaaf | 2023-01-15 18:58:52 -0500 | [diff] [blame] | 18 | .PHONY: test |
Joey Armstrong | e6cdd8e | 2022-12-29 11:58:15 -0500 | [diff] [blame] | 19 | .DEFAULT_GOAL := test |
| 20 | |
Joey Armstrong | e66eaaf | 2023-01-15 18:58:52 -0500 | [diff] [blame] | 21 | ##-------------------## |
| 22 | ##---] GLOBALS [---## |
| 23 | ##-------------------## |
Joey Armstrong | e6cdd8e | 2022-12-29 11:58:15 -0500 | [diff] [blame] | 24 | TOP ?= . |
| 25 | MAKEDIR ?= $(TOP)/makefiles |
| 26 | |
| 27 | $(if $(VERBOSE),$(eval export VERBOSE=$(VERBOSE))) # visible to include(s) |
| 28 | |
Joey Armstrong | 761579c | 2023-05-08 11:59:57 -0400 | [diff] [blame] | 29 | ##-------------------------- |
| 30 | ## Enable setup.py debugging |
| 31 | ##-------------------------- |
| 32 | # https://docs.python.org/3/distutils/setupscript.html#debugging-the-setup-script |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 33 | # export DISTUTILS_DEBUG := 1 # verbose: pip |
| 34 | export DOCKER_DEBUG := 1 # verbose: docker |
Joey Armstrong | 761579c | 2023-05-08 11:59:57 -0400 | [diff] [blame] | 35 | |
Joey Armstrong | c227765 | 2023-01-11 17:41:36 -0500 | [diff] [blame] | 36 | # Makefile for voltha-protos |
| 37 | default: test |
| 38 | |
Joey Armstrong | e66eaaf | 2023-01-15 18:58:52 -0500 | [diff] [blame] | 39 | ## Library linting |
| 40 | # NO-LINT-MAKEFILE := true # cleanup needed |
| 41 | NO-LINT-SHELL := true # cleanup needed |
| 42 | |
Joey Armstrong | e6cdd8e | 2022-12-29 11:58:15 -0500 | [diff] [blame] | 43 | ##--------------------## |
| 44 | ##---] INCLUDES [---## |
| 45 | ##--------------------## |
Joey Armstrong | e66eaaf | 2023-01-15 18:58:52 -0500 | [diff] [blame] | 46 | include $(MAKEDIR)/include.mk |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 47 | |
Zack Williams | 43bfd9e | 2019-04-12 13:09:31 -0700 | [diff] [blame] | 48 | # Function to extract the last path component from go_package line in .proto files |
| 49 | define go_package_path |
| 50 | $(shell grep go_package $(1) | sed -n 's/.*\/\(.*\)";/\1/p') |
| 51 | endef |
| 52 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 53 | # Function to extract the last path component from package line in .proto files |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 54 | # protos/voltha_protos/common.proto => common |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 55 | define java_package_path |
| 56 | $(shell grep package $(1) | sed -n 's/.*\/\(.*\)";/\1/p') |
| 57 | endef |
| 58 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 59 | # Variables |
Zack Williams | 43bfd9e | 2019-04-12 13:09:31 -0700 | [diff] [blame] | 60 | PROTO_FILES := $(sort $(wildcard protos/voltha_protos/*.proto)) |
| 61 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 62 | PROTO_PYTHON_DEST_DIR := python/voltha_protos |
| 63 | PROTO_PYTHON_PB2 := $(foreach f, $(PROTO_FILES), $(patsubst protos/voltha_protos/%.proto,$(PROTO_PYTHON_DEST_DIR)/%_pb2.py,$(f))) |
Matt Jeanneret | 37e0fc6 | 2019-03-07 12:33:21 -0500 | [diff] [blame] | 64 | PROTO_PYTHON_PB2_GRPC := $(foreach f, $(PROTO_FILES), $(patsubst protos/voltha_protos/%.proto,$(PROTO_PYTHON_DEST_DIR)/%_pb2_grpc.py,$(f))) |
Zack Williams | 43bfd9e | 2019-04-12 13:09:31 -0700 | [diff] [blame] | 65 | PROTO_GO_DEST_DIR := go |
| 66 | PROTO_GO_PB:= $(foreach f, $(PROTO_FILES), $(patsubst protos/voltha_protos/%.proto,$(PROTO_GO_DEST_DIR)/$(call go_package_path,$(f))/%.pb.go,$(f))) |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 67 | PROTO_JAVA_DEST_DIR := java |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 68 | PROTO_JAVA_PB := $(foreach f, $(PROTO_FILES), $(patsubst protos/voltha_protos/%.proto,$(PROTO_JAVA_DEST_DIR)/$(call java_package_path,$(f))/%.pb.java,$(f))) |
Joey Armstrong | 761579c | 2023-05-08 11:59:57 -0400 | [diff] [blame] | 69 | |
Zack Williams | 25e0a32 | 2019-06-07 14:07:21 -0700 | [diff] [blame] | 70 | # Force pb file to be regenrated every time. Otherwise the make process assumes generated version is still valid |
Kent Hagerman | 868dc38 | 2020-01-20 11:24:09 -0500 | [diff] [blame] | 71 | .PHONY: voltha.pb |
Matt Jeanneret | 15249fa | 2019-04-12 20:25:31 -0400 | [diff] [blame] | 72 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 73 | print: |
Zack Williams | 43bfd9e | 2019-04-12 13:09:31 -0700 | [diff] [blame] | 74 | @echo "Proto files: $(PROTO_FILES)" |
| 75 | @echo "Python PB2 files: $(PROTO_PYTHON_PB2)" |
| 76 | @echo "Go PB files: $(PROTO_GO_PB)" |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 77 | @echo "JAVA PB files: $(PROTO_JAVA_PB)" |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 78 | |
| 79 | # Generic targets |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 80 | protos: python-protos go-protos java-protos |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 81 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 82 | build: protos python-build go-protos java-protos |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 83 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 84 | test: python-test go-test java-test |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 85 | |
Joey Armstrong | 761579c | 2023-05-08 11:59:57 -0400 | [diff] [blame] | 86 | clean :: python-clean java-clean go-clean |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 87 | |
Joey Armstrong | 761579c | 2023-05-08 11:59:57 -0400 | [diff] [blame] | 88 | sterile :: clean |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 89 | $(RM) -r java_temp |
Joey Armstrong | c227765 | 2023-01-11 17:41:36 -0500 | [diff] [blame] | 90 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 91 | # Python targets |
Kent Hagerman | 868dc38 | 2020-01-20 11:24:09 -0500 | [diff] [blame] | 92 | python-protos: $(PROTO_PYTHON_PB2) |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 93 | |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 94 | show-pb2: |
| 95 | @echo $(PROTO_PYTHON_PB2) | tr ' ' '\n' |
| 96 | |
Joey Armstrong | 761579c | 2023-05-08 11:59:57 -0400 | [diff] [blame] | 97 | ## ----------------------------------------------------------------------- |
| 98 | ## ----------------------------------------------------------------------- |
| 99 | $(PROTO_PYTHON_DEST_DIR)/%_pb2.py: \ |
| 100 | protos/voltha_protos/%.proto \ |
| 101 | Makefile \ |
| 102 | $(venv-activate-script) |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 103 | |
| 104 | @echo |
| 105 | @echo "** -----------------------------------------------------------------------" |
| 106 | @echo "** $(MAKE): processing target [$@]" |
| 107 | @echo "** -----------------------------------------------------------------------" |
| 108 | |
| 109 | $(activate) && python -m grpc_tools.protoc \ |
Zack Williams | 43bfd9e | 2019-04-12 13:09:31 -0700 | [diff] [blame] | 110 | -I protos \ |
| 111 | --python_out=python \ |
| 112 | --grpc_python_out=python \ |
| 113 | --descriptor_set_out=$(PROTO_PYTHON_DEST_DIR)/$(basename $(notdir $<)).desc \ |
| 114 | --include_imports \ |
| 115 | --include_source_info \ |
| 116 | $< |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 117 | |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 118 | ## ----------------------------------------------------------------------- |
| 119 | ## Intent: |
| 120 | ## ----------------------------------------------------------------------- |
| 121 | show: |
| 122 | $(call banner-enter,target $@) |
| 123 | @echo |
| 124 | $(call banner-leave,target $@) |
| 125 | |
| 126 | ## ----------------------------------------------------------------------- |
| 127 | ## Intent: |
| 128 | ## ----------------------------------------------------------------------- |
| 129 | python-build: setup.py python-protos |
| 130 | |
| 131 | $(call banner-enter,target $@) |
| 132 | |
Joey Armstrong | e6cdd8e | 2022-12-29 11:58:15 -0500 | [diff] [blame] | 133 | $(RM) -r dist/ |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 134 | python ./setup.py sdist |
| 135 | |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 136 | $(call banner-leave,target $@) |
| 137 | |
| 138 | ## ----------------------------------------------------------------------- |
| 139 | ## Intent: |
| 140 | ## ----------------------------------------------------------------------- |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 141 | python-test: tox.ini setup.py python-protos |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 142 | $(call banner-enter,target $@) |
| 143 | |
| 144 | $(activate) && python --version |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 145 | tox |
| 146 | |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 147 | $(call banner-leave,target $@) |
| 148 | |
| 149 | ## ----------------------------------------------------------------------- |
| 150 | ## Intent: |
| 151 | ## ----------------------------------------------------------------------- |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 152 | python-clean: |
Joey Armstrong | e66eaaf | 2023-01-15 18:58:52 -0500 | [diff] [blame] | 153 | find python -name '__pycache__' -type d -print0 \ |
| 154 | | xargs -0 --no-run-if-empty $(RM) -r |
Joey Armstrong | c227765 | 2023-01-11 17:41:36 -0500 | [diff] [blame] | 155 | find python -name '*.pyc' -type f -print0 \ |
| 156 | | xargs -0 --no-run-if-empty $(RM) |
Joey Armstrong | e6cdd8e | 2022-12-29 11:58:15 -0500 | [diff] [blame] | 157 | $(RM) -r \ |
Zack Williams | 43bfd9e | 2019-04-12 13:09:31 -0700 | [diff] [blame] | 158 | .coverage \ |
| 159 | .tox \ |
| 160 | coverage.xml \ |
| 161 | dist \ |
| 162 | nose2-results.xml \ |
| 163 | python/__pycache__ \ |
| 164 | python/test/__pycache__ \ |
| 165 | python/voltha_protos.egg-info \ |
Joey Armstrong | 761579c | 2023-05-08 11:59:57 -0400 | [diff] [blame] | 166 | "$(venv-abs-path)" \ |
Zack Williams | 43bfd9e | 2019-04-12 13:09:31 -0700 | [diff] [blame] | 167 | $(PROTO_PYTHON_DEST_DIR)/*.desc \ |
| 168 | $(PROTO_PYTHON_PB2) \ |
| 169 | $(PROTO_PYTHON_PB2_GRPC) |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 170 | |
Joey Armstrong | 761579c | 2023-05-08 11:59:57 -0400 | [diff] [blame] | 171 | ## ----------------------------------------------------------------------- |
| 172 | ## Intent: Revert go to a clean state. |
| 173 | ## o TODO - go/ directory should not be placed under revision control. |
| 174 | ## o Build should retrieve versioned sources from a central repo. |
| 175 | ## ----------------------------------------------------------------------- |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 176 | go-clean: |
Joey Armstrong | e6cdd8e | 2022-12-29 11:58:15 -0500 | [diff] [blame] | 177 | $(RM) -r go/* |
Joey Armstrong | 761579c | 2023-05-08 11:59:57 -0400 | [diff] [blame] | 178 | $(HIDE)$(MAKE) repair |
| 179 | |
| 180 | ## ----------------------------------------------------------------------- |
| 181 | ## Intent: Recover from a fatal failed build state: |
| 182 | ## o build removes go/ while regenerating prototypes. |
| 183 | ## o chicken-n-egg: make becomes fatal when go/ is removed and proten fails. |
| 184 | ## ----------------------------------------------------------------------- |
| 185 | repair: |
| 186 | /usr/bin/env git checkout go |
| 187 | |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 188 | ## ----------------------------------------------------------------------- |
| 189 | ## Intent: Go targets |
| 190 | ## ----------------------------------------------------------------------- |
Kent Hagerman | 868dc38 | 2020-01-20 11:24:09 -0500 | [diff] [blame] | 191 | go-protos: voltha.pb |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 192 | |
| 193 | @echo |
| 194 | @echo "** -----------------------------------------------------------------------" |
| 195 | @echo "** $(MAKE): processing target [$@]" |
| 196 | @echo "** Creating *.go.pb files" |
| 197 | @echo "** -----------------------------------------------------------------------" |
| 198 | |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 199 | $(docker-sh) $(quote-double) /bin/ls -ld /go/src $(quote-double) |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 200 | |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 201 | ${PROTOC_SH} $(quote-double) \ |
| 202 | find /go/src -print0 | xargs -0 /bin/ls -ld \ |
| 203 | $(quote-double) |
| 204 | |
| 205 | $(call banner-enter,target $@) |
| 206 | |
Joey Armstrong | 761579c | 2023-05-08 11:59:57 -0400 | [diff] [blame] | 207 | ${PROTOC_SH} $(quote-double)\ |
Kent Hagerman | 868dc38 | 2020-01-20 11:24:09 -0500 | [diff] [blame] | 208 | set -e -o pipefail; \ |
| 209 | for x in ${PROTO_FILES}; do \ |
| 210 | echo \$$x; \ |
| 211 | protoc --go_out=plugins=grpc:/go/src -I protos \$$x; \ |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 212 | done\ |
| 213 | $(quote-double) |
| 214 | |
| 215 | $(call banner-leave,target $@) |
Zack Williams | 43bfd9e | 2019-04-12 13:09:31 -0700 | [diff] [blame] | 216 | |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 217 | ## ----------------------------------------------------------------------- |
| 218 | ## Intent: |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 219 | ## ---------------------------------------------------------------------- |
| 220 | voltha.pb: show-proto-files |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 221 | $(call banner-enter,target $@) |
| 222 | |
| 223 | ${PROTOC} \ |
| 224 | -I protos \ |
| 225 | -I protos/google/api \ |
| 226 | --include_imports \ |
| 227 | --include_source_info \ |
Kent Hagerman | 868dc38 | 2020-01-20 11:24:09 -0500 | [diff] [blame] | 228 | --descriptor_set_out=$@ \ |
| 229 | ${PROTO_FILES} |
Zack Williams | 43bfd9e | 2019-04-12 13:09:31 -0700 | [diff] [blame] | 230 | |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 231 | $(call banner-leave,target $@) |
| 232 | |
| 233 | ## ----------------------------------------------------------------------- |
| 234 | ## Intent: |
| 235 | ## ----------------------------------------------------------------------- |
Kent Hagerman | 868dc38 | 2020-01-20 11:24:09 -0500 | [diff] [blame] | 236 | go-test: |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 237 | $(call banner-enter,target $@) |
| 238 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 239 | test/test-go-proto-consistency.sh |
Kent Hagerman | 868dc38 | 2020-01-20 11:24:09 -0500 | [diff] [blame] | 240 | ${GO} mod verify |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 241 | |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 242 | $(call banner-leave,target $@) |
| 243 | |
| 244 | ## ----------------------------------------------------------------------- |
| 245 | ## Intent: Java targets |
| 246 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 247 | |
| 248 | java-protos-dirs += java_temp/src/main/java |
| 249 | java-protos-dirs += java_temp/src/main/java/org |
| 250 | # local docker problem |
| 251 | java-protos-dirs += java_temp/src/main/java/org/opencord/voltha/adapter |
| 252 | java-protos-dirs += java_temp/src/main/java/org/opencord/voltha/adapter_service |
| 253 | |
| 254 | mkdir-args += -vp |
| 255 | mkdir-args += --mode=0777 |
| 256 | |
Kent Hagerman | 868dc38 | 2020-01-20 11:24:09 -0500 | [diff] [blame] | 257 | java-protos: voltha.pb |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 258 | |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 259 | $(call banner-enter,target $@) |
| 260 | |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 261 | # $(RM) -fr java_temp |
| 262 | mkdir $(mkdir-args) $(java-protos-dirs) |
| 263 | $(docker-sh) $(quote-double) find $(java-protos-dirs) -print0 \ |
| 264 | | xargs -0 -n1 /bin/ls -ld $(quote-double) |
| 265 | |
Joey Armstrong | 761579c | 2023-05-08 11:59:57 -0400 | [diff] [blame] | 266 | @${PROTOC_SH} $(quote-double) \ |
Kent Hagerman | 868dc38 | 2020-01-20 11:24:09 -0500 | [diff] [blame] | 267 | set -e -o pipefail; \ |
| 268 | for x in ${PROTO_FILES}; do \ |
| 269 | echo \$$x; \ |
| 270 | protoc --java_out=java_temp/src/main/java -I protos \$$x; \ |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 271 | done\ |
| 272 | $(quote-double) |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 273 | |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 274 | # Move files into place after all prototypes have generated. |
| 275 | # TODO: Remove the extra step, use makefile deps and |
| 276 | # generate in-place as needed. |
| 277 | @mkdir -p java |
| 278 | cp -r java_temp/src/main/java/* java |
| 279 | |
| 280 | $(call banner-leave,target $@) |
| 281 | |
| 282 | ## ----------------------------------------------------------------------- |
| 283 | ## Intent: Tests if the generated java classes are compilable |
| 284 | ## ----------------------------------------------------------------------- |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 285 | java-test: java-protos |
| 286 | cp test/pom.xml java_temp |
| 287 | cd java_temp && mvn compile |
| 288 | |
Joey Armstrong | 670d40c | 2023-05-11 20:49:26 -0400 | [diff] [blame] | 289 | ## ----------------------------------------------------------------------- |
| 290 | ## Intent: Custodial service |
| 291 | ## ----------------------------------------------------------------------- |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 292 | java-clean: |
Joey Armstrong | e6cdd8e | 2022-12-29 11:58:15 -0500 | [diff] [blame] | 293 | $(RM) -r java |
| 294 | $(RM) -r java_temp |
| 295 | |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 296 | ## ----------------------------------------------------------------------- |
| 297 | ## Intent: Placeholder for library targets |
| 298 | ## ----------------------------------------------------------------------- |
Joey Armstrong | e66eaaf | 2023-01-15 18:58:52 -0500 | [diff] [blame] | 299 | lint : |
| 300 | |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 301 | ## ----------------------------------------------------------------------- |
| 302 | ## Intent: Display/debug targets |
| 303 | ## ----------------------------------------------------------------------- |
| 304 | .PHONY: show-proto-files |
| 305 | show-proto-files: |
| 306 | echo -e "PROTO_FILES:\n$(PROTO_FILES)" | tr ' ' '\n' |
| 307 | |
Joey Armstrong | e6cdd8e | 2022-12-29 11:58:15 -0500 | [diff] [blame] | 308 | # [EOF] |
Joey Armstrong | 56b3678 | 2023-05-30 17:30:11 -0400 | [diff] [blame^] | 309 | |