summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-21 13:56:21 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-21 13:56:21 +0000
commite0952c61403850f69af7b911996a11b05c91a0cb (patch)
tree4f7623d99944dda4dcf0c008fe7ec95892a746c7 /package
parenta6f3251e0f44d894dab8a4b1581b25589b990fa8 (diff)
fix uninstall target so it doesnt delete the *hosts* flex :x
Diffstat (limited to 'package')
-rw-r--r--package/flex/flex.mk21
1 files changed, 18 insertions, 3 deletions
diff --git a/package/flex/flex.mk b/package/flex/flex.mk
index 10b7936f3..fa47ae69b 100644
--- a/package/flex/flex.mk
+++ b/package/flex/flex.mk
@@ -65,15 +65,30 @@ $(TARGET_DIR)/$(FLEX_TARGET_BINARY): $(FLEX_DIR)/$(FLEX_BINARY)
infodir=$(TARGET_DIR)/usr/info \
mandir=$(TARGET_DIR)/usr/man \
includedir=$(TARGET_DIR)/usr/include \
- -C $(FLEX_DIR) install;
+ -C $(FLEX_DIR) install
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 -s flex lex)
+ (cd $(TARGET_DIR)/usr/bin; ln -sf flex lex)
flex: uclibc $(TARGET_DIR)/$(FLEX_TARGET_BINARY)
flex-clean:
- $(MAKE) DESTDIR=$(TARGET_DIR) -C $(FLEX_DIR) uninstall
+ $(MAKE) \
+ prefix=$(TARGET_DIR)/usr \
+ exec_prefix=$(TARGET_DIR)/usr \
+ bindir=$(TARGET_DIR)/usr/bin \
+ sbindir=$(TARGET_DIR)/usr/sbin \
+ libexecdir=$(TARGET_DIR)/usr/lib \
+ datadir=$(TARGET_DIR)/usr/share \
+ sysconfdir=$(TARGET_DIR)/etc \
+ sharedstatedir=$(TARGET_DIR)/usr/com \
+ localstatedir=$(TARGET_DIR)/var \
+ libdir=$(TARGET_DIR)/usr/lib \
+ infodir=$(TARGET_DIR)/usr/info \
+ mandir=$(TARGET_DIR)/usr/man \
+ includedir=$(TARGET_DIR)/usr/include \
+ -C $(FLEX_DIR) uninstall
+ rm -f $(TARGET_DIR)/usr/bin/lex
-$(MAKE) -C $(FLEX_DIR) clean
flex-dirclean: