blob: fcfa8d6ed7221a2401f9c836128662d442f17389 [file] [log] [blame]
Joey Armstrongf548adc2023-09-08 15:59:42 -04001# -*- makefile -*-
2# -----------------------------------------------------------------------
3# Copyright 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors
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# -----------------------------------------------------------------------
17
18##-------------------##
19##---] GLOBALS [---##
20##-------------------##
21lint-groovy-cmds += $(shell which npm-groovy-lint)
22lint-groovy-cmds += $(HOME)/.npm/bin/npm-groovy-lint
23lint-groovy-cmds += /usr/bin/npm-groovy-lint
24# lint-groovy-cmds += /dev/null# # force existence
25
26lint-groovy-cmd = $(firstword $(wildcard $(lint-groovy-cmds)))
27
28##-------------------##
29##---] TARGETS [---##
30##-------------------##
31ifndef NO-LINT-GROOVY
32
33 lint : lint-groovy
34endif
35
36## -----------------------------------------------------------------------
37## Intent: Install npm-groovy-lint
38## -----------------------------------------------------------------------
39$(lint-groovy-cmd) : lint-groovy-install
40lint-groovy-install:
41
42## -----------------------------------------------------------------------
43## Intent: Display command help
44## -----------------------------------------------------------------------
45help-summary ::
46 @echo ' lint-groovy-install Syntax check groovy sources'
47
48# [EOF]
49