forked from secureCodeBox/secureCodeBox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv-paths.mk
More file actions
40 lines (38 loc) · 2 KB
/
env-paths.mk
File metadata and controls
40 lines (38 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# SPDX-FileCopyrightText: the secureCodeBox authors
#
# SPDX-License-Identifier: Apache-2.0
PROJECT_DIR = $(shell pwd)
BIN_DIR = $(PROJECT_DIR)/bin
SCANNERS_DIR = $(PROJECT_DIR)/scanners
HOOKS_DIR = $(PROJECT_DIR)/hooks
DEMO_TARGETS_DIR = $(PROJECT_DIR)/demo-targets
OPERATOR_DIR = $(PROJECT_DIR)/operator
PARSER_SDK_DIR = $(PROJECT_DIR)/parser-sdk/nodejs
HOOK_SDK_DIR = $(PROJECT_DIR)/hook-sdk/nodejs
AUTO_DISCOVERY_DIR = $(PROJECT_DIR)/auto-discovery
HELM_DOCS_DIR = $(PROJECT_DIR)/.helm-docs
TEMPLATES_DIR = $(PROJECT_DIR)/.templates
SCANNERS_CHART_LIST := $(sort $(wildcard $(SCANNERS_DIR)/*/Chart.yaml))
SCANNERS_TEST_LIST := $(sort $(wildcard $(SCANNERS_DIR)/*/Makefile))
HOOKS_CHART_LIST := $(sort $(wildcard $(HOOKS_DIR)/*/Chart.yaml))
HOOKS_TEST_LIST := $(sort $(wildcard $(HOOKS_DIR)/*/Makefile))
DEMO_TARGETS_CHART_LIST := $(sort $(wildcard $(DEMO_TARGETS_DIR)/*/Chart.yaml))
# This find construct is based on https://stackoverflow.com/questions/4210042/how-to-exclude-a-directory-in-find-command/4210072#4210072
PACKAGE_JSON_LIST := $(shell find $(PROJECT_DIR) \( \
-name .git -o \
-name .github -o \
-name .idea -o \
-name .reuse -o \
-name .vagrant -o \
-name .vscode -o \
-name bin -o \
-name docs -o \
-name LICENSES -o \
-name coverage -o \
-name dist -o \
-name node_modules -o \
-name target \) \
-prune \
-false \
-o -type f \
-iname package.json)