From dfe689229df9afe9a3b7783b477ed82f9a521dbc Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 27 Mar 2008 15:42:42 +0000 Subject: buildroot: cleanup -clean targets. Based on input from Arndt Kritzner & Bernhard Fischer. --- package/socat/socat.mk | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'package/socat') diff --git a/package/socat/socat.mk b/package/socat/socat.mk index 3478b515d..10b3c9f07 100644 --- a/package/socat/socat.mk +++ b/package/socat/socat.mk @@ -54,19 +54,18 @@ $(SOCAT_WORKDIR)/socat: $(SOCAT_WORKDIR)/Makefile rm -f $@ $(MAKE) -C $(SOCAT_WORKDIR) -$(SOCAT_WORKDIR)/.installed: $(SOCAT_WORKDIR)/socat +$(TARGET_DIR)/usr/bin/socat: $(SOCAT_WORKDIR)/socat mkdir -p $(TARGET_DIR)/usr/man/man1 $(MAKE) -C $(SOCAT_WORKDIR) install prefix=$(TARGET_DIR)/usr DESTDIR=$(TARGET_DIR) touch $@ -socat: uclibc $(SOCAT_WORKDIR)/.installed +socat: uclibc $(TARGET_DIR)/usr/bin/socat socat-source: $(DL_DIR)/$(SOCAT_SOURCE) socat-clean: - @if [ -d $(SOCAT_WORKDIR)/Makefile ]; then \ - $(MAKE) -C $(SOCAT_WORKDIR) clean; \ - fi + -$(MAKE) -C $(SOCAT_WORKDIR) clean + rm -f $(TARGET_DIR)/usr/bin/{socat,filan,procan} socat-dirclean: rm -rf $(SOCAT_DIR) $(SOCAT_WORKDIR) -- cgit v1.2.3