summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-08-04 19:15:40 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2011-08-04 19:15:40 (GMT)
commitfc57b341d9e3ce65d6df4e3ec14d87eb2ff361be (patch)
treedebf5a7dc727f6f835162822f1e3f87a94092f13
parentd63a817f55a8591893431257657da44bb6c1103b (diff)
downloadbuildroot-fc57b341d9e3ce65d6df4e3ec14d87eb2ff361be.tar.gz
buildroot-fc57b341d9e3ce65d6df4e3ec14d87eb2ff361be.tar.bz2
orc: target install: cleanup unused files
orcc is only needed when developing. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/orc/orc.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/orc/orc.mk b/package/orc/orc.mk
index f89d5cf..37b6e99 100644
--- a/package/orc/orc.mk
+++ b/package/orc/orc.mk
@@ -7,4 +7,18 @@ ORC_VERSION = 0.4.14
ORC_SITE = http://code.entropywave.com/download/orc/
ORC_INSTALL_STAGING = YES
+define ORC_REMOVE_BUGREPORT
+ rm -f $(TARGET_DIR)/usr/bin/orc-bugreport
+endef
+
+define ORC_REMOVE_DEVFILES
+ rm -f $(TARGET_DIR)/usr/bin/orcc
+endef
+
+ORC_POST_INSTALL_TARGET_HOOKS += ORC_REMOVE_BUGREPORT
+
+ifneq ($(BR2_HAVE_DEVFILES),y)
+ORC_POST_INSTALL_TARGET_HOOKS += ORC_REMOVE_DEVFILES
+endif
+
$(eval $(call AUTOTARGETS,package,orc))