Make clean_libraries in the same way that we make all_libraries
authorIan Lynagh <igloo@earth.li>
Fri, 29 May 2009 18:01:50 +0000 (18:01 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 29 May 2009 18:01:50 +0000 (18:01 +0000)
rules/build-package.mk

index afe69ac..8fa110f 100644 (file)
@@ -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