Skip to content

Commit 1f99dd7

Browse files
committed
Let "make clean" be ignored silently if the OpenSSL crypto library and
FIPS provider haven't been built yet. The DCAP project starts building the SGX-SSL library with "make clean" that would fail otherwise. Signed-off-by: Juan del Cuvillo <[email protected]>
1 parent c5bcf92 commit 1f99dd7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

openssl_source/Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,10 @@ uninstall:
9393
rm -rf $(SGX_SDK)/$(LIBDIR)/$(FIPSMODULECONF)
9494

9595
clean:
96-
ifeq ($(OSSL_FIPS_BUILD_DIR_SET), 0)
97-
$(error "Missing directory : $(OSSL_FIPS_BUILD_DIR). Have you built the FIPS module yet?")
98-
endif
96+
ifeq ($(OSSL_FIPS_BUILD_DIR_SET), 1)
9997
@echo "*** Cleaning FIPS module"
10098
cd $(OSSL_FIPS_BUILD_DIR) && $(MAKE) uninstall && $(MAKE) clean
99+
endif
101100

102101
clean_dirs:
103102
@rm -rf $(OSSL_FIPS_SOURCE_DIR)/

0 commit comments

Comments
 (0)