Joey Armstrong | f548adc | 2023-09-08 15:59:42 -0400 | [diff] [blame] | 1 | # -*- makefile -*- |
| 2 | # ----------------------------------------------------------------------- |
Joey Armstrong | dc04c93 | 2024-04-01 12:14:21 -0400 | [diff] [blame] | 3 | # Copyright 2022-2024 Open Networking Foundation Contributors |
Joey Armstrong | f548adc | 2023-09-08 15:59:42 -0400 | [diff] [blame] | 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
Joey Armstrong | dc04c93 | 2024-04-01 12:14:21 -0400 | [diff] [blame] | 9 | # http:#www.apache.org/licenses/LICENSE-2.0 |
Joey Armstrong | f548adc | 2023-09-08 15:59:42 -0400 | [diff] [blame] | 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # ----------------------------------------------------------------------- |
Joey Armstrong | dc04c93 | 2024-04-01 12:14:21 -0400 | [diff] [blame] | 17 | # SPDX-FileCopyrightText: 2022-2024 Open Networking Foundation Contributors |
| 18 | # SPDX-License-Identifier: Apache-2.0 |
| 19 | # ----------------------------------------------------------------------- |
Joey Armstrong | ccab2cf | 2024-04-06 18:00:59 -0400 | [diff] [blame] | 20 | # Intent: Install npm-groovy-lint for syntax checking |
| 21 | # ----------------------------------------------------------------------- |
| 22 | # NOTES: Tool install dependency chain |
| 23 | # version : tool-install |
| 24 | # tool-install : npm-tool |
| 25 | # npm-tool : npm-install |
| 26 | # |
| 27 | # % make npm-groovy-lint installs npm, node and npm-groovy-lint |
Joey Armstrong | dc04c93 | 2024-04-01 12:14:21 -0400 | [diff] [blame] | 28 | # ----------------------------------------------------------------------- |
Joey Armstrong | f548adc | 2023-09-08 15:59:42 -0400 | [diff] [blame] | 29 | |
Joey Armstrong | ccab2cf | 2024-04-06 18:00:59 -0400 | [diff] [blame] | 30 | $(if $(DEBUG),$(warning ENTER)) |
Joey Armstrong | f548adc | 2023-09-08 15:59:42 -0400 | [diff] [blame] | 31 | |
| 32 | ## ----------------------------------------------------------------------- |
Joey Armstrong | ccab2cf | 2024-04-06 18:00:59 -0400 | [diff] [blame] | 33 | ## Intent: Display groovy command version string. |
Joey Armstrong | f548adc | 2023-09-08 15:59:42 -0400 | [diff] [blame] | 34 | ## ----------------------------------------------------------------------- |
Joey Armstrong | ccab2cf | 2024-04-06 18:00:59 -0400 | [diff] [blame] | 35 | .PHONY: lint-groovy-version |
| 36 | lint-groovy-version : $(lint-groovy-cmd) |
| 37 | @echo |
| 38 | $(activate-npm) && "$<" --version |
Joey Armstrong | f548adc | 2023-09-08 15:59:42 -0400 | [diff] [blame] | 39 | |
| 40 | ## ----------------------------------------------------------------------- |
Joey Armstrong | ccab2cf | 2024-04-06 18:00:59 -0400 | [diff] [blame] | 41 | ## Intent: On-demand instalation of the groovy command |
Joey Armstrong | f548adc | 2023-09-08 15:59:42 -0400 | [diff] [blame] | 42 | ## ----------------------------------------------------------------------- |
Joey Armstrong | ccab2cf | 2024-04-06 18:00:59 -0400 | [diff] [blame] | 43 | .PHONY: lint-groovy-install |
| 44 | lint-groovy-install : $(lint-groovy-cmd) |
| 45 | |
| 46 | ## ----------------------------------------------------------------------- |
| 47 | ## Intent: Display command usage |
| 48 | ## ----------------------------------------------------------------------- |
| 49 | lint-groovy-help :: |
| 50 | @echo |
| 51 | @printf ' %-33.33s %s\n' 'lint-groovy-version' 'Display lint tool version' |
| 52 | @printf ' %-33.33s %s\n' 'lint-groovy-install' 'Install lint tool' |
| 53 | |
| 54 | @$(MAKE) --no-print-directory npm-help |
Joey Armstrong | f548adc | 2023-09-08 15:59:42 -0400 | [diff] [blame] | 55 | |
| 56 | # [EOF] |