2018-02-01 12:20:50 +01:00
|
|
|
#
|
|
|
|
# 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!
|
|
|
|
|
2020-01-09 11:04:32 +01:00
|
|
|
.PHONY: prepare clean all
|
|
|
|
|
|
|
|
all: $(PKG_BUILDDIR)/.prepared
|
2018-02-01 12:20:50 +01:00
|
|
|
|
|
|
|
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
|