Commit 4d298a2d authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

Makefile: target-devfiles: combine .a / .la find invocation

parent d26240a8
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -344,10 +344,8 @@ ifeq ($(BR2_HAVE_DEVFILES),y)
	( scripts/copy.sh $(STAGING_DIR) $(TARGET_DIR) )
else
	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
	find $(TARGET_DIR)/lib -name '*.la' -delete
	find $(TARGET_DIR)/lib \( -name '*.a' -o -name '*.la' \) -delete
	find $(TARGET_DIR)/usr/lib \( -name '*.a' -o -name '*.la' \) -delete
endif

source: $(TARGETS_SOURCE) $(HOST_SOURCE)