1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/local.mk
2020-01-09 11:19:06 +01:00

24 lines
580 B
Makefile

#
# This file allows specifying a local folder using PKG_SOURCE_LOCAL.
#
# Every clean or prepare will remove $(PKG_BUILDDIR) and copy over
# $(PKG_SOURCE_LOCAL). This is intended to be used during package development.
#
# WARNING: any local changes made to $(PKG_BUILDDIR) *will* get lost!
.PHONY: prepare clean all
all: $(PKG_BUILDDIR)/.prepared
prepare: $(PKG_BUILDDIR)/.prepared
@true
$(PKG_BUILDDIR)/.prepared:
rm -Rf $(PKG_BUILDDIR)
mkdir -p $$(dirname $(PKG_BUILDDIR))
cp -a $(PKG_SOURCE_LOCAL) $(PKG_BUILDDIR)
touch $@
clean::
@rm -f $(PKG_BUILDDIR)/.prepared