1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-27 16:54:15 +01:00

OP-1818 added MD5_GEN_TEMPLATE used to generate md5 signature files

This commit is contained in:
Philippe Renon 2015-04-05 18:40:52 +02:00
parent e61aefdfee
commit 8525ef1287

View File

@ -267,6 +267,27 @@ define MD5_CHECK_TEMPLATE
"`test -f \"$(1)\" && $(OPENSSL) dgst -md5 \"$(1)\" | $(CUT) -f2 -d' '`" $(2) "`$(CUT) -f1 -d' ' < \"$(1).md5\"`"
endef
##############################
#
# Cross-platform MD5 generation template
# $(1) = file name without quotes
#
##############################
ifeq ($(UNAME), Darwin)
define MD5_GEN_TEMPLATE
md5 -r $(1) > $(1).md5
endef
else
define MD5_GEN_TEMPLATE
$(OPENSSL) dgst -r -md5 $(1) > $(1).md5
endef
endif
##############################
#
# Cross platform download template