mirror of https://git.wownero.com/dsc/mxe.git
new target "make clean-pkg" to remove all unused package files (handy after a successful "make update")
This commit is contained in:
parent
afaff868a5
commit
2cf9e932a7
7
Makefile
7
Makefile
|
@ -88,6 +88,13 @@ strip:
|
|||
clean:
|
||||
rm -rf $(call TMP_DIR,*) $(PREFIX)/*
|
||||
|
||||
.PHONY: clean-pkg
|
||||
clean-pkg:
|
||||
rm -f $(patsubst %,'%', \
|
||||
$(filter-out \
|
||||
$(foreach PKG,$(PKG_RULES),$(PKG_DIR)/$($(PKG)_FILE)), \
|
||||
$(wildcard $(PKG_DIR)/*)))
|
||||
|
||||
.PHONY: update
|
||||
define UPDATE
|
||||
$(if $(2), \
|
||||
|
|
|
@ -44,6 +44,10 @@ Usage
|
|||
remove all package builds,
|
||||
use with caution!
|
||||
|
||||
make clean-pkg
|
||||
|
||||
remove all unused package files
|
||||
|
||||
make update
|
||||
|
||||
update the version numbers of all packages,
|
||||
|
|
Loading…
Reference in New Issue