mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/c25519: unify Makefile variables
This commit is contained in:
parent
7f137af925
commit
8404ad50b5
@ -7,6 +7,7 @@ PKG_SHA512 = dbfb4285837ab2ea3d99c448b22877cc7a139ccbaebb1de367e2bec1fd562fe629
|
|||||||
|
|
||||||
PKG_SOURCE_DIR ?= $(PKGDIRBASE)/$(PKG_NAME)
|
PKG_SOURCE_DIR ?= $(PKGDIRBASE)/$(PKG_NAME)
|
||||||
PKG_ZIPFILE = $(PKGDIRBASE)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
|
PKG_ZIPFILE = $(PKGDIRBASE)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
|
||||||
|
PKG_ZIP_URL = $(PKG_URL)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
|
||||||
|
|
||||||
ifneq ($(RIOTBASE),)
|
ifneq ($(RIOTBASE),)
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
@ -19,17 +20,17 @@ prepare: $(PKG_SOURCE_DIR)/
|
|||||||
all: $(PKG_SOURCE_DIR)/
|
all: $(PKG_SOURCE_DIR)/
|
||||||
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||||
|
|
||||||
$(PKG_SOURCE_DIR)/: $(PKGDIRBASE)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
|
$(PKG_SOURCE_DIR)/: $(PKG_ZIPFILE)
|
||||||
$(QQ)test "$(PKG_SHA512) $(PKG_ZIPFILE)" = "$$(sha512sum "${PKG_ZIPFILE}")"
|
$(QQ)test "$(PKG_SHA512) $(PKG_ZIPFILE)" = "$$(sha512sum "$(PKG_ZIPFILE)")"
|
||||||
$(Q)$(UNZIP_HERE) -D -d $(PKGDIRBASE) $<
|
$(Q)$(UNZIP_HERE) -D -d $(PKGDIRBASE) $<
|
||||||
|
|
||||||
$(PKG_ZIPFILE):
|
$(PKG_ZIPFILE):
|
||||||
$(QQ)mkdir -p $(PKGDIRBASE)
|
$(QQ)mkdir -p $(PKGDIRBASE)
|
||||||
$(Q)$(DOWNLOAD_TO_FILE) $@ $(PKG_URL)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
|
$(Q)$(DOWNLOAD_TO_FILE) $@ $(PKG_ZIP_URL)
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
# Reset package to checkout state.
|
# Reset package to checkout state.
|
||||||
rm -rf $(PKG_SOURCE_DIR)
|
rm -rf $(PKG_SOURCE_DIR)
|
||||||
|
|
||||||
distclean::
|
distclean::
|
||||||
rm -rf $(PKG_SOURCE_DIR) $(PKGDIRBASE)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
|
rm -rf $(PKG_SOURCE_DIR) $(PKG_ZIPFILE)
|
||||||
|
Loading…
Reference in New Issue
Block a user