summaryrefslogtreecommitdiffstats
path: root/package/socat
diff options
context:
space:
mode:
Diffstat (limited to 'package/socat')
-rw-r--r--package/socat/socat.mk9
1 files changed, 4 insertions, 5 deletions
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)