summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Voltz <john.voltz@gmail.com>2008-03-10 15:22:43 +0000
committerJohn Voltz <john.voltz@gmail.com>2008-03-10 15:22:43 +0000
commitbc67ca29d3668dd7439e1e5ce3964eb7b6ee2721 (patch)
tree9658e27c6468208c945a7c1db0d506ad776140e0 /Makefile
parent77ec383076f19f9c2a980941f2dfa9da829de557 (diff)
added dev files in target option
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9a08d718f..5e57f1625 100644
--- a/Makefile
+++ b/Makefile
@@ -245,7 +245,7 @@ include package/*/*.mk
# target stuff is last so it can override anything else
include target/Makefile.in
-TARGETS+=erase-fakeroots
+TARGETS+=erase-fakeroots target-devfiles
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS) $(BASE_TARGETS))
@@ -317,6 +317,21 @@ $(TARGET_DIR): $(PROJECT_BUILD_DIR)/.root
erase-fakeroots:
rm -f $(PROJECT_BUILD_DIR)/.fakeroot*
+target-devfiles:
+ifeq ($(strip $(BR2_TARGET_DEV_FILES)),y)
+ cp -a $(STAGING_DIR)/usr/include $(TARGET_DIR)/usr
+ cp $(STAGING_DIR)/usr/lib/*.a $(TARGET_DIR)/usr/lib
+ cp $(STAGING_DIR)/lib/*.a $(TARGET_DIR)/lib
+ cp $(STAGING_DIR)/usr/lib/*.la $(TARGET_DIR)/usr/lib
+ cp $(STAGING_DIR)/lib/*.la $(TARGET_DIR)/lib
+else
+ rm -rf $(TARGET_DIR)/usr/include
+ 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
+endif
+
source: $(TARGETS_SOURCE) $(HOST_SOURCE)
_source-check: