Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8507 from kaspar030/allow_git_pkg_source_override
pkg: add local.mk, allow source folder override for git packages
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# 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 git-download clean | ||
|
||
git-download: | ||
@true | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters