blob: b2f70ce120c9f23898e5dac58036cf45f5b61a4d [file] [log] [blame]
Jens Geyer0e87c462013-06-18 22:25:07 +02001#
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' Wang8045d822022-04-19 14:31:39 -070020GOBUILDEXTRA = -buildvcs=false
Yuxuan 'fishy' Wang8045d822022-04-19 14:31:39 -070021
Jens Geyer0e87c462013-06-18 22:25:07 +020022gen-go/tutorial/calculator.go gen-go/shared/shared_service.go: $(top_srcdir)/tutorial/tutorial.thrift
Yuxuan 'fishy' Wangb71f11e2021-03-22 15:01:00 -070023 $(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 Geyer0e87c462013-06-18 22:25:07 +020024
25all-local: gen-go/tutorial/calculator.go
26
Yuxuan 'fishy' Wangb71f11e2021-03-22 15:01:00 -070027check: thirdparty-dep all
Yuxuan 'fishy' Wange8353cb2022-10-28 10:29:25 -070028 $(GO) build $(GOBUILDEXTRA) -o go-tutorial ./src
29 $(GO) build $(GOBUILDEXTRA) -o calculator-remote ./gen-go/tutorial/calculator-remote/calculator-remote.go
Jens Geyer0e87c462013-06-18 22:25:07 +020030
taozlec0d384a2017-07-17 18:40:42 +020031thirdparty-dep:
taozlec0d384a2017-07-17 18:40:42 +020032
Jens Geyer0e87c462013-06-18 22:25:07 +020033tutorialserver: all
Yuxuan 'fishy' Wange8353cb2022-10-28 10:29:25 -070034 $(GO) run src/*.go -server=true
Jens Geyer0e87c462013-06-18 22:25:07 +020035
36tutorialclient: all
Yuxuan 'fishy' Wange8353cb2022-10-28 10:29:25 -070037 $(GO) run src/*.go
Jens Geyer4c835952013-08-13 21:34:17 +020038
39tutorialsecureserver: all
Yuxuan 'fishy' Wange8353cb2022-10-28 10:29:25 -070040 $(GO) run src/*.go -server=true -secure=true
Jens Geyer4c835952013-08-13 21:34:17 +020041
42tutorialsecureclient: all
Yuxuan 'fishy' Wange8353cb2022-10-28 10:29:25 -070043 $(GO) run src/*.go -secure=true
Jens Geyer0e87c462013-06-18 22:25:07 +020044
45clean-local:
Yuxuan 'fishy' Wangb71f11e2021-03-22 15:01:00 -070046 $(RM) -r gen-* go-tutorial calculator-remote
Jens Geyer0e87c462013-06-18 22:25:07 +020047
48EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +020049 src/client.go \
50 src/handler.go \
51 src/server.go \
52 src/main.go \
53 server.crt \
54 server.key
jfarrell102c6002013-08-15 21:20:19 -040055