Jens Geyer | 7757ce7 | 2013-07-18 22:48:40 +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 | |
jfarrell | 8fd8c63 | 2014-07-10 09:14:51 -0400 | [diff] [blame] | 20 | SUBDIRS = . |
| 21 | |
Jens Geyer | 7757ce7 | 2013-07-18 22:48:40 +0200 | [diff] [blame] | 22 | if WITH_TESTS |
Philippe Antoine | 65ea752 | 2021-03-15 09:34:58 +0100 | [diff] [blame] | 23 | SUBDIRS += test test/fuzz |
Jens Geyer | 7757ce7 | 2013-07-18 22:48:40 +0200 | [diff] [blame] | 24 | endif |
| 25 | |
Yuxuan 'fishy' Wang | 8045d82 | 2022-04-19 14:31:39 -0700 | [diff] [blame] | 26 | if GOVERSION_GE_118 |
| 27 | GOBUILDEXTRA = -buildvcs=false |
| 28 | else |
| 29 | GOBUILDEXTRA = |
| 30 | endif |
| 31 | |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 32 | install: |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 33 | @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 Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 38 | |
Yuxuan 'fishy' Wang | 8045d82 | 2022-04-19 14:31:39 -0700 | [diff] [blame] | 39 | # NOTE: We have to disable stdmethods in go vet until |
| 40 | # https://github.com/golang/go/issues/52445 is fixed. |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 41 | check-local: |
Yuxuan 'fishy' Wang | e8353cb | 2022-10-28 10:29:25 -0700 | [diff] [blame^] | 42 | $(GO) vet -stdmethods=false github.com/apache/thrift/lib/go/thrift |
| 43 | $(GO) test -race ./thrift |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 44 | |
James E. King, III | 65efdff | 2017-09-25 00:13:38 -0400 | [diff] [blame] | 45 | clean-local: |
| 46 | $(RM) -rf pkg |
| 47 | |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 48 | all-local: |
Yuxuan 'fishy' Wang | e8353cb | 2022-10-28 10:29:25 -0700 | [diff] [blame^] | 49 | $(GO) build $(GOBUILDEXTRA) ./thrift |
Jens Geyer | 0e87c46 | 2013-06-18 22:25:07 +0200 | [diff] [blame] | 50 | |
jfarrell | 32d323e | 2013-08-15 20:39:58 -0400 | [diff] [blame] | 51 | EXTRA_DIST = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 52 | thrift \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 53 | coding_standards.md \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 54 | README.md |