1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

pkg: add prepare targets

This commit is contained in:
Kaspar Schleiser 2017-06-28 14:34:53 +02:00
parent 93fb2cee47
commit 98bb1f2781
3 changed files with 9 additions and 3 deletions

View File

@ -12,10 +12,12 @@ SOFTDEVICE := components/softdevice/s1xx_iot/s1xx-iot-prototype3_nrf52_softdevic
BLE_6LOWPAN_LIB := components/iot/ble_6lowpan/lib/ble_6lowpan.a
MODULE_MAKEFILE := $(PKG_DIR)/Makefile.module
.PHONY: all clean distclean
.PHONY: all prepare clean distclean
all: $(BINDIR)/ble_6lowpan.a $(BINDIR)/softdevice.hex
prepare: $(PKG_SRCDIR)/.extracted
$(BINDIR)/ble_6lowpan.a: $(PKG_SRCDIR)/.extracted
cp $(PKG_SRCDIR)/$(BLE_6LOWPAN_LIB) $@

View File

@ -4,7 +4,9 @@
PKG_DIR?=$(CURDIR)
PKG_BUILDDIR?=$(PKGDIRBASE)/$(PKG_NAME)
.PHONY: git-download clean
.PHONY: prepare git-download clean
prepare: git-download
ifneq (,$(wildcard $(PKG_DIR)/patches))
git-download: $(PKG_BUILDDIR)/.git-patched

View File

@ -8,10 +8,12 @@ PKG_DIR=$(CURDIR)
PKG_BUILDDIR=$(PKGDIRBASE)/$(PKG_NAME)
PKG_SRCDIR=$(PKG_BUILDDIR)/src
.PHONY: all clean distclean
.PHONY: all prepare clean distclean
all: $(PKG_SRCDIR)/$(PKG_NAME).a
prepare: $(PKG_SRCDIR)/Makefile
$(PKG_SRCDIR)/$(PKG_NAME).a: $(PKG_SRCDIR)/Makefile
$(Q)make -C $(<D)