Joey Armstrong | 97a8b88 | 2023-08-02 16:08:52 -0400 | [diff] [blame] | 1 | # -*- makefile -*- |
| 2 | # ----------------------------------------------------------------------- |
Joey Armstrong | 518f357 | 2024-02-11 07:56:25 -0500 | [diff] [blame] | 3 | # Copyright 2022-2024 Open Networking Foundation (ONF) and the ONF Contributors |
Joey Armstrong | 97a8b88 | 2023-08-02 16:08:52 -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 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 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 | 9337496 | 2023-07-31 16:23:24 -0400 | [diff] [blame] | 17 | |
Joey Armstrong | 97a8b88 | 2023-08-02 16:08:52 -0400 | [diff] [blame] | 18 | ##-------------------## |
| 19 | ##---] GLOBALS [---## |
| 20 | ##-------------------## |
| 21 | lint-groovy-cmds += $(shell which npm-groovy-lint) |
| 22 | lint-groovy-cmds += $(HOME)/.npm/bin/npm-groovy-lint |
| 23 | lint-groovy-cmds += /usr/bin/npm-groovy-lint |
| 24 | # lint-groovy-cmds += /dev/null# # force existence |
| 25 | |
| 26 | lint-groovy-cmd = $(firstword $(wildcard $(lint-groovy-cmds))) |
| 27 | |
| 28 | ##-------------------## |
| 29 | ##---] TARGETS [---## |
| 30 | ##-------------------## |
| 31 | ifndef NO-LINT-GROOVY |
| 32 | |
| 33 | lint : lint-groovy |
| 34 | endif |
| 35 | |
| 36 | ## ----------------------------------------------------------------------- |
| 37 | ## Intent: Install npm-groovy-lint |
| 38 | ## ----------------------------------------------------------------------- |
| 39 | $(lint-groovy-cmd) : lint-groovy-install |
| 40 | lint-groovy-install: |
| 41 | |
| 42 | ## ----------------------------------------------------------------------- |
| 43 | ## Intent: Display command help |
| 44 | ## ----------------------------------------------------------------------- |
| 45 | help-summary :: |
| 46 | @echo ' lint-groovy-install Syntax check groovy sources' |
| 47 | |
| 48 | # [EOF] |