Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 1 | # |
| 2 | # Licensed to the Apache Software Foundation (ASF) under one |
| 3 | # or more contributor license agreements. See the NOTICE file |
| 4 | # distributed with this work for additional information |
| 5 | # regarding copyright ownership. The ASF licenses this file |
| 6 | # to you under the Apache License, Version 2.0 (the |
| 7 | # "License"); you may not use this file except in compliance |
| 8 | # with the License. You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, |
| 13 | # software distributed under the License is distributed on an |
| 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | # KIND, either express or implied. See the License for the |
| 16 | # specific language governing permissions and limitations |
| 17 | # under the License. |
| 18 | # |
| 19 | |
Yuxuan 'fishy' Wang | 8045d82 | 2022-04-19 14:31:39 -0700 | [diff] [blame^] | 20 | if GOVERSION_GE_118 |
| 21 | GOBUILDEXTRA = -buildvcs=false |
| 22 | else |
| 23 | GOBUILDEXTRA = |
| 24 | endif |
| 25 | |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 26 | gen-go/tutorial/calculator.go gen-go/shared/shared_service.go: $(top_srcdir)/tutorial/tutorial.thrift |
Yuxuan 'fishy' Wang | b71f11e | 2021-03-22 15:01:00 -0700 | [diff] [blame] | 27 | $(THRIFT) --gen go:thrift_import=github.com/apache/thrift/lib/go/thrift,package_prefix=github.com/apache/thrift/tutorial/go/gen-go/$(COMPILER_EXTRAFLAG) -r $< |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 28 | |
| 29 | all-local: gen-go/tutorial/calculator.go |
| 30 | |
Yuxuan 'fishy' Wang | b71f11e | 2021-03-22 15:01:00 -0700 | [diff] [blame] | 31 | check: thirdparty-dep all |
Yuxuan 'fishy' Wang | 8045d82 | 2022-04-19 14:31:39 -0700 | [diff] [blame^] | 32 | $(GO) build $(GOBUILDEXTRA) -mod=mod -o go-tutorial ./src |
| 33 | $(GO) build $(GOBUILDEXTRA) -mod=mod -o calculator-remote ./gen-go/tutorial/calculator-remote/calculator-remote.go |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 34 | |
taozle | c0d384a | 2017-07-17 18:40:42 +0200 | [diff] [blame] | 35 | thirdparty-dep: |
taozle | c0d384a | 2017-07-17 18:40:42 +0200 | [diff] [blame] | 36 | |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 37 | tutorialserver: all |
Yuxuan 'fishy' Wang | b71f11e | 2021-03-22 15:01:00 -0700 | [diff] [blame] | 38 | $(GO) run -mod=mod src/*.go -server=true |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 39 | |
| 40 | tutorialclient: all |
Yuxuan 'fishy' Wang | b71f11e | 2021-03-22 15:01:00 -0700 | [diff] [blame] | 41 | $(GO) run -mod=mod src/*.go |
Jens Geyer | 4c83595 | 2013-08-13 21:34:17 +0200 | [diff] [blame] | 42 | |
| 43 | tutorialsecureserver: all |
Yuxuan 'fishy' Wang | b71f11e | 2021-03-22 15:01:00 -0700 | [diff] [blame] | 44 | $(GO) run -mod=mod src/*.go -server=true -secure=true |
Jens Geyer | 4c83595 | 2013-08-13 21:34:17 +0200 | [diff] [blame] | 45 | |
| 46 | tutorialsecureclient: all |
Yuxuan 'fishy' Wang | b71f11e | 2021-03-22 15:01:00 -0700 | [diff] [blame] | 47 | $(GO) run -mod=mod src/*.go -secure=true |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 48 | |
| 49 | clean-local: |
Yuxuan 'fishy' Wang | b71f11e | 2021-03-22 15:01:00 -0700 | [diff] [blame] | 50 | $(RM) -r gen-* go-tutorial calculator-remote |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 51 | |
| 52 | EXTRA_DIST = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 53 | src/client.go \ |
| 54 | src/handler.go \ |
| 55 | src/server.go \ |
| 56 | src/main.go \ |
| 57 | server.crt \ |
| 58 | server.key |
jfarrell | 102c600 | 2013-08-15 21:20:19 -0400 | [diff] [blame] | 59 | |