blob: 06399f5f4a34aa122f26653f377d782830e66652 [file] [log] [blame]
Jens Geyer7757ce72013-07-18 22:48:40 +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
jfarrell8fd8c632014-07-10 09:14:51 -040020SUBDIRS = .
21
Jens Geyer7757ce72013-07-18 22:48:40 +020022if WITH_TESTS
Philippe Antoine65ea7522021-03-15 09:34:58 +010023SUBDIRS += test test/fuzz
Jens Geyer7757ce72013-07-18 22:48:40 +020024endif
25
Yuxuan 'fishy' Wang8045d822022-04-19 14:31:39 -070026if GOVERSION_GE_118
27GOBUILDEXTRA = -buildvcs=false
28else
29GOBUILDEXTRA =
30endif
31
Jens Geyer0e87c462013-06-18 22:25:07 +020032install:
Jens Geyer79f988c2014-10-03 20:42:54 +020033 @echo '##############################################################'
34 @echo '##############################################################'
35 @echo 'The Go client library should be installed via "go get", please see /lib/go/README.md'
36 @echo '##############################################################'
37 @echo '##############################################################'
Jens Geyer0e87c462013-06-18 22:25:07 +020038
Yuxuan 'fishy' Wang8045d822022-04-19 14:31:39 -070039# NOTE: We have to disable stdmethods in go vet until
40# https://github.com/golang/go/issues/52445 is fixed.
Jens Geyer0e87c462013-06-18 22:25:07 +020041check-local:
Yuxuan 'fishy' Wang8045d822022-04-19 14:31:39 -070042 $(GO) vet -mod=mod -stdmethods=false github.com/apache/thrift/lib/go/thrift
Yuxuan 'fishy' Wangb71f11e2021-03-22 15:01:00 -070043 $(GO) test -mod=mod -race ./thrift
Jens Geyer0e87c462013-06-18 22:25:07 +020044
James E. King, III65efdff2017-09-25 00:13:38 -040045clean-local:
46 $(RM) -rf pkg
47
Roger Meier41ad4342015-03-24 22:30:40 +010048all-local:
Yuxuan 'fishy' Wang8045d822022-04-19 14:31:39 -070049 $(GO) build $(GOBUILDEXTRA) -mod=mod ./thrift
Jens Geyer0e87c462013-06-18 22:25:07 +020050
jfarrell32d323e2013-08-15 20:39:58 -040051EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +020052 thrift \
jfarrellf13e4312015-08-25 00:39:29 -040053 coding_standards.md \
Jens Geyer79f988c2014-10-03 20:42:54 +020054 README.md