2018-02-01 12:20:50 +01:00
|
|
|
#
|
|
|
|
# This file allows specifying a local folder using PKG_SOURCE_LOCAL.
|
|
|
|
#
|
2020-06-13 20:50:01 +02:00
|
|
|
# Every clean or prepare will remove $(PKG_SOURCE_DIR) and copy over
|
2018-02-01 12:20:50 +01:00
|
|
|
# $(PKG_SOURCE_LOCAL). This is intended to be used during package development.
|
|
|
|
#
|
2020-06-13 20:50:01 +02:00
|
|
|
# WARNING: any local changes made to $(PKG_SOURCE_DIR) *will* get lost!
|
2018-02-01 12:20:50 +01:00
|
|
|
|
2020-02-21 14:57:39 +01:00
|
|
|
.PHONY: prepare clean all FORCE
|
2020-01-09 11:04:32 +01:00
|
|
|
|
2020-06-13 20:50:01 +02:00
|
|
|
all: $(PKG_SOURCE_DIR)/.prepared
|
2018-02-01 12:20:50 +01:00
|
|
|
|
2020-06-13 20:50:01 +02:00
|
|
|
prepare: $(PKG_SOURCE_DIR)/.prepared
|
2018-02-01 12:20:50 +01:00
|
|
|
@true
|
|
|
|
|
2020-06-13 20:50:01 +02:00
|
|
|
$(PKG_SOURCE_DIR)/.prepared:
|
|
|
|
rm -Rf $(PKG_SOURCE_DIR)
|
|
|
|
mkdir -p $$(dirname $(PKG_SOURCE_DIR))
|
|
|
|
cp -a $(PKG_SOURCE_LOCAL) $(PKG_SOURCE_DIR)
|
2018-02-01 12:20:50 +01:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
clean::
|
2020-06-13 20:50:01 +02:00
|
|
|
@rm -f $(PKG_SOURCE_DIR)/.prepared
|