blob: 13830bf9878927cf83c53f9974f8c2c235650567 [file] [log] [blame]
Joey Armstrong97a8b882023-08-02 16:08:52 -04001# -*- makefile -*-
2# -----------------------------------------------------------------------
Joey Armstrong518f3572024-02-11 07:56:25 -05003# Copyright 2022-2024 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrong97a8b882023-08-02 16:08:52 -04004#
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 Armstrong93374962023-07-31 16:23:24 -040017
Joey Armstrong97a8b882023-08-02 16:08:52 -040018##-------------------##
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]