aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.inc4
-rw-r--r--programs/Makefile6
2 files changed, 3 insertions, 7 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 338ef560..0840a564 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -85,18 +85,14 @@ endif
# Avoid symlinks when targetting Windows or building on a Windows host
ifeq ($(WINBASED),yes)
-LN_S = cp -p
LN_SF = cp -p
else
ifneq (,$(filter MINGW% MSYS% CYGWIN%,$(shell uname)))
-LN_S = cp -p
LN_SF = cp -p
else
ifneq (,$(filter Windows%,$(OS)))
-LN_S = cp -p
LN_SF = cp -p
else
-LN_S = ln -s
LN_SF = ln -sf
endif
endif
diff --git a/programs/Makefile b/programs/Makefile
index cd274c01..f4711098 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -167,9 +167,9 @@ install: lz4
@echo Installing binaries
$(INSTALL_DIR) $(DESTDIR)$(bindir)/ $(DESTDIR)$(man1dir)/
$(INSTALL_PROGRAM) lz4$(EXT) $(DESTDIR)$(bindir)/lz4$(EXT)
- $(LN_S) lz4$(EXT) $(DESTDIR)$(bindir)/lz4c$(EXT)
- $(LN_S) lz4$(EXT) $(DESTDIR)$(bindir)/lz4cat$(EXT)
- $(LN_S) lz4$(EXT) $(DESTDIR)$(bindir)/unlz4$(EXT)
+ $(LN_SF) lz4$(EXT) $(DESTDIR)$(bindir)/lz4c$(EXT)
+ $(LN_SF) lz4$(EXT) $(DESTDIR)$(bindir)/lz4cat$(EXT)
+ $(LN_SF) lz4$(EXT) $(DESTDIR)$(bindir)/unlz4$(EXT)
@echo Installing man pages
$(INSTALL_DATA) lz4.1 $(DESTDIR)$(man1dir)/lz4.1
$(LN_SF) lz4.1 $(DESTDIR)$(man1dir)/lz4c.1