Makefile: remove target pkgconfig files if BR2_HAVE_DEVFILES isn't enabled

This commit is contained in:
Peter Korsgaard 2008-07-01 12:04:28 +00:00
parent 555a7f5e50
commit 926646d9ca
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ target-devfiles:
ifeq ($(BR2_HAVE_DEVFILES),y)
( scripts/copy.sh $(STAGING_DIR) $(TARGET_DIR) )
else
rm -rf $(TARGET_DIR)/usr/include
rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib/pkgconfig
find $(TARGET_DIR)/usr/lib -name '*.a' -delete
find $(TARGET_DIR)/lib -name '*.a' -delete
find $(TARGET_DIR)/usr/lib -name '*.la' -delete