From e0952c61403850f69af7b911996a11b05c91a0cb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Oct 2004 13:56:21 +0000 Subject: [PATCH] fix uninstall target so it doesnt delete the *hosts* flex :x --- package/flex/flex.mk | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/package/flex/flex.mk b/package/flex/flex.mk index 10b7936f39..fa47ae69b6 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: -- 2.30.2