summaryrefslogtreecommitdiffstats
path: root/package/flex/flex.mk
diff options
context:
space:
mode:
authorDavid Anders <dave123@abcsinc.com>2006-01-23 21:21:00 +0000
committerDavid Anders <dave123@abcsinc.com>2006-01-23 21:21:00 +0000
commitafbccc64c2d94cc1eb64c32a69d4643e87e4c30e (patch)
tree3fd8d8789848578916948b7fc9bddb75ec20c6d3 /package/flex/flex.mk
parentee669f74263ea244c7a5a3af7d8e57b748d618a5 (diff)
downloadbuildroot-novena-afbccc64c2d94cc1eb64c32a69d4643e87e4c30e.tar.gz
buildroot-novena-afbccc64c2d94cc1eb64c32a69d4643e87e4c30e.zip
add option to install libfl.a per case 0000438
Diffstat (limited to 'package/flex/flex.mk')
-rw-r--r--package/flex/flex.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/flex/flex.mk b/package/flex/flex.mk
index a44bb9692..9c6e92926 100644
--- a/package/flex/flex.mk
+++ b/package/flex/flex.mk
@@ -66,6 +66,9 @@ $(TARGET_DIR)/$(FLEX_TARGET_BINARY): $(FLEX_DIR)/$(FLEX_BINARY)
mandir=$(TARGET_DIR)/usr/man \
includedir=$(TARGET_DIR)/usr/include \
-C $(FLEX_DIR) install
+ifeq ($(strip $(BR2_PACKAGE_FLEX_LIBFL)),y)
+ install -D $(FLEX_DIR)/libfl.a $(STAGING_DIR)/lib/libfl.a
+endif
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
(cd $(TARGET_DIR)/usr/bin; ln -snf flex lex)
@@ -89,6 +92,9 @@ flex-clean:
includedir=$(TARGET_DIR)/usr/include \
-C $(FLEX_DIR) uninstall
rm -f $(TARGET_DIR)/usr/bin/lex
+ifeq ($(strip $(BR2_PACKAGE_FLEX_LIBFL)),y)
+ -rm $(STAGING_DIR)/lib/libfl.a
+endif
-$(MAKE) -C $(FLEX_DIR) clean
flex-dirclean: