Felipe Franciosi | f8ef277 | 2019-07-02 14:06:42 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2019 Nutanix Inc. All rights reserved. |
| 3 | # |
| 4 | # Authors: Thanos Makatos <thanos@nutanix.com> |
| 5 | # Swapnil Ingle <swapnil.ingle@nutanix.com> |
| 6 | # Felipe Franciosi <felipe@nutanix.com> |
| 7 | # |
| 8 | # Redistribution and use in source and binary forms, with or without |
| 9 | # modification, are permitted provided that the following conditions are met: |
| 10 | # * Redistributions of source code must retain the above copyright |
| 11 | # notice, this list of conditions and the following disclaimer. |
| 12 | # * Redistributions in binary form must reproduce the above copyright |
| 13 | # notice, this list of conditions and the following disclaimer in the |
| 14 | # documentation and/or other materials provided with the distribution. |
| 15 | # * Neither the name of Nutanix nor the names of its contributors may be |
| 16 | # used to endorse or promote products derived from this software without |
| 17 | # specific prior written permission. |
Felipe Franciosi | 08d1f38 | 2019-11-02 05:53:53 +0000 | [diff] [blame] | 18 | # |
Felipe Franciosi | f8ef277 | 2019-07-02 14:06:42 +0100 | [diff] [blame] | 19 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 20 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 21 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 22 | # ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY |
| 23 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 24 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 25 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 26 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 28 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 | # |
| 30 | |
Daniel P. Berrangé | 11ccc96 | 2022-05-05 18:37:52 +0100 | [diff] [blame] | 31 | BUILD_DIR = $(CURDIR)/build |
Felipe Franciosi | f8ef277 | 2019-07-02 14:06:42 +0100 | [diff] [blame] | 32 | |
Daniel P. Berrangé | 11ccc96 | 2022-05-05 18:37:52 +0100 | [diff] [blame] | 33 | .PHONY: all install test coverity pre-push clean tags |
Felipe Franciosi | f8ef277 | 2019-07-02 14:06:42 +0100 | [diff] [blame] | 34 | |
Daniel P. Berrangé | 11ccc96 | 2022-05-05 18:37:52 +0100 | [diff] [blame] | 35 | all: |
| 36 | test -d $(BUILD_DIR) || meson $(BUILD_DIR) |
| 37 | ninja -C $(BUILD_DIR) |
John Levon | 02dda31 | 2021-02-04 10:07:53 +0000 | [diff] [blame] | 38 | |
Daniel P. Berrangé | 11ccc96 | 2022-05-05 18:37:52 +0100 | [diff] [blame] | 39 | install: |
| 40 | ninja -C $(BUILD_DIR) install |
John Levon | df72df5 | 2021-05-25 15:09:03 +0100 | [diff] [blame] | 41 | |
Daniel P. Berrangé | 11ccc96 | 2022-05-05 18:37:52 +0100 | [diff] [blame] | 42 | test: all |
| 43 | meson test -C $(BUILD_DIR) |
John Levon | 76fb4e2 | 2020-11-25 17:33:25 +0000 | [diff] [blame] | 44 | |
Daniel P. Berrangé | 93709c0 | 2022-05-05 12:10:09 +0100 | [diff] [blame] | 45 | pre-push: |
| 46 | .github/workflows/pull_request.sh |
John Levon | 96d4f11 | 2020-12-02 12:20:45 +0000 | [diff] [blame] | 47 | |
Daniel P. Berrangé | 93709c0 | 2022-05-05 12:10:09 +0100 | [diff] [blame] | 48 | coverity: |
| 49 | .github/workflows/coverity.sh |
John Levon | 3111d8e | 2021-10-20 16:36:53 +0100 | [diff] [blame] | 50 | |
John Levon | df72df5 | 2021-05-25 15:09:03 +0100 | [diff] [blame] | 51 | clean: |
Felipe Franciosi | f8ef277 | 2019-07-02 14:06:42 +0100 | [diff] [blame] | 52 | rm -rf $(BUILD_DIR) |
| 53 | |
Daniel P. Berrangé | 11ccc96 | 2022-05-05 18:37:52 +0100 | [diff] [blame] | 54 | tags: all |
| 55 | ninja -C $(BUILD_DIR) ctags |