summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2017-09-26 14:19:45 -0400
committerPeter Jones <pmjones@gmail.com>2018-03-12 16:21:43 -0400
commitd184bf10752d92eb44ac23139dce5f0f1ece4d0d (patch)
tree474204e3937758f1ebaa9638b814bf1701029017 /Makefile
parentb681123a874aa693fc64b0947fd6459feeab6b33 (diff)
downloadefi-boot-shim-d184bf10752d92eb44ac23139dce5f0f1ece4d0d.tar.gz
efi-boot-shim-d184bf10752d92eb44ac23139dce5f0f1ece4d0d.zip
Add 'make coverity' target.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 16 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index c3dbf8b5..ee318fb3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+default : all
+
+NAME = shim
VERSION = 14
ifneq ($(origin RELEASE),undefined)
DASHRELEASE ?= -$(RELEASE)
@@ -8,10 +11,15 @@ endif
ifeq ($(MAKELEVEL),0)
TOPDIR ?= $(shell pwd)
endif
+ifeq ($(TOPDIR),)
+override TOPDIR := $(shell pwd)
+endif
override TOPDIR := $(abspath $(TOPDIR))
VPATH = $(TOPDIR)
include $(TOPDIR)/Make.defaults
+include $(TOPDIR)/Make.rules
+include $(TOPDIR)/Make.coverity
TARGETS = $(SHIMNAME)
TARGETS += $(SHIMNAME).debug $(MMNAME).debug $(FBNAME).debug
@@ -211,13 +219,16 @@ else
$(PESIGN) -n certdb -i $< -c "shim" -s -o $@ -f
endif
-clean: OBJS=$(wildcard *.o)
-clean:
+clean-shim-objs:
+ $(MAKE) -C lib -f $(TOPDIR)/lib/Makefile clean
+ @rm -rvf $(TARGET) *.o $(SHIM_OBJS) $(MOK_OBJS) $(FALLBACK_OBJS) $(KEYS) certdb $(BOOTCSVNAME)
+ @rm -vf *.debug *.so *.efi *.efi.* *.tar.* version.c buildid
+ @rm -vf Cryptlib/*.[oa] Cryptlib/*/*.[oa]
+ @git clean -f -d -e 'Cryptlib/OpenSSL/*'
+
+clean: clean-shim-objs
$(MAKE) -C Cryptlib -f $(TOPDIR)/Cryptlib/Makefile clean
$(MAKE) -C Cryptlib/OpenSSL -f $(TOPDIR)/Cryptlib/OpenSSL/Makefile clean
- $(MAKE) -C lib -f $(TOPDIR)/lib/Makefile clean
- rm -rf $(TARGET) $(OBJS) $(MOK_OBJS) $(FALLBACK_OBJS) $(KEYS) certdb $(BOOTCSVNAME)
- rm -f *.debug *.so *.efi *.efi.* *.tar.* version.c buildid
GITTAG = $(VERSION)