diff options
Diffstat (limited to 'include/package.mk')
-rw-r--r-- | include/package.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/package.mk b/include/package.mk index 37cea1448d..b88f2c52b0 100644 --- a/include/package.mk +++ b/include/package.mk @@ -211,6 +211,12 @@ define Build/CoreTargets .configure: $(STAMP_CONFIGURED) .dist: $(STAMP_CONFIGURED) .distcheck: $(STAMP_CONFIGURED) + + ifneq ($(CONFIG_AUTOREMOVE),) + compile: + $(FIND) $(PKG_BUILD_DIR) -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | \ + $(XARGS) rm -rf + endif endef define Build/DefaultTargets |