mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-31 03:25:19 +00:00
Try to make scan-build.mk work without scan-build installed.
This commit is contained in:
parent
f16c7dc632
commit
e943efbb5f
@ -1,9 +1,6 @@
|
||||
SCAN_BUILD ?= $(shell x=$$(which --skip-alias --skip-functions scan-build 2>/dev/null) ; [ -n "$$x" ] && echo 1)
|
||||
ifeq ($(SCAN_BUILD),)
|
||||
SCAN_BUILD_ERROR = $(error scan-build not found)
|
||||
endif
|
||||
SCAN_BUILD ?= $(shell x=$$(which --skip-alias --skip-functions scan-build 2>/dev/null) ; [ -n "$$x" ] && echo "$$x")
|
||||
|
||||
scan-test : ; $(SCAN_BUILD_ERROR)
|
||||
scan-test : ; $(if $(findstring /,$(SCAN_BUILD)),,$(error scan-build not found))
|
||||
|
||||
scan-clean :
|
||||
@if [[ -d scan-results ]]; then rm -rf scan-results && echo "removed 'scan-results'"; fi
|
||||
|
Loading…
Reference in New Issue
Block a user