aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKouhei Sutou <kou@clear-code.com>2016-09-23 10:43:12 +0900
committerKouhei Sutou <kou@clear-code.com>2016-09-23 10:43:12 +0900
commit829941e5a81081787217ae1a28794e546812b0b4 (patch)
tree80c1947dbf1f74c6ee40f8aee373ad46f2f90f81 /Makefile
parent1ca408105d7774bd1f379b9ec695ac7579cd456c (diff)
downloadlz4-829941e5a81081787217ae1a28794e546812b0b4.tar.gz
Add missing $(EXT) to lz4 program name
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d9fbb8cc..930922d2 100644
--- a/Makefile
+++ b/Makefile
@@ -41,8 +41,10 @@ LZ4DIR = lib
# Define nul output
ifneq (,$(filter Windows%,$(OS)))
+EXT = .exe
VOID = nul
else
+EXT =
VOID = /dev/null
endif
@@ -58,14 +60,14 @@ lib:
lz4:
@$(MAKE) -C $(PRGDIR)
- @cp $(PRGDIR)/lz4 .
+ @cp $(PRGDIR)/lz4$(EXT) .
clean:
@$(MAKE) -C $(PRGDIR) $@ > $(VOID)
@$(MAKE) -C $(LZ4DIR) $@ > $(VOID)
@$(MAKE) -C examples $@ > $(VOID)
@$(MAKE) -C versionsTest $@ > $(VOID)
- @$(RM) lz4
+ @$(RM) lz4$(EXT)
@echo Cleaning completed