-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy pathdeprecated.mk
More file actions
26 lines (25 loc) · 1.42 KB
/
deprecated.mk
File metadata and controls
26 lines (25 loc) · 1.42 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
# deprecated.mk — catch-all shim for renamed Makefile targets
#
# Included via variable path so shell tab-completion parsers
# cannot resolve the file and the old names stay hidden.
#
# Make itself resolves the variable and processes this file normally,
# so typing an old target name still produces a helpful message.
.DEFAULT:
@case "$@" in \
build-frontend) echo "RENAMED: use 'make build frontend'" >&2 ;; \
build-backend) echo "RENAMED: use 'make build backend'" >&2 ;; \
build-backend-all) echo "RENAMED: use 'make build backend'" >&2 ;; \
backend-all) echo "RENAMED: use 'make build backend'" >&2 ;; \
package) echo "RENAMED: use 'make release'" >&2 ;; \
clean-dev) echo "RENAMED: use 'make clean'" >&2 ;; \
clean-deep) echo "RENAMED: use 'make clean dist'" >&2 ;; \
clean-all) echo "RENAMED: use 'make clean dist'" >&2 ;; \
debug-version) echo "RENAMED: use 'make dump version'" >&2 ;; \
fe-version) echo "RENAMED: use 'make stamp frontend'" >&2 ;; \
dev-frontend) echo "RENAMED: use 'make dev frontend'" >&2 ;; \
dev-backend) echo "RENAMED: use 'make dev backend'" >&2 ;; \
security) echo "RENAMED: use 'make audit backend' (or 'make audit' for both stacks)" >&2 ;; \
gosec|trivy|vuln) echo "RENAMED: use 'make audit backend' (combined gosec + trivy + govulncheck)" >&2 ;; \
*) echo "make: *** No rule to make target '$@'. Stop." >&2; exit 2 ;; \
esac