summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules/build-package.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/rules/build-package.mk b/rules/build-package.mk
index afe69ac159..8fa110f8c8 100644
--- a/rules/build-package.mk
+++ b/rules/build-package.mk
@@ -42,14 +42,15 @@ endif
ifneq "$(BINDIST) $3" "YES 0"
$(call all-target,$1,all_$1_$2)
+$(call clean-target,$1,$2,$1/$2)
# This give us things like
# all_libraries: all_libraries/base_dist-install
+# clean_libraries: clean_libraries/base_dist-install
ifneq "$$($1_$2_GROUP)" ""
all_$$($1_$2_GROUP): all_$1_$2
+clean_$$($1_$2_GROUP): clean_$1_$2
endif
-$(call clean-target,$1,$2,$1/$2)
-
distclean : clean_$1_$2_config
maintainer-clean : distclean