summaryrefslogtreecommitdiffstats
path: root/programs/Makefile
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2016-01-10 16:07:10 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2016-01-10 16:07:10 (GMT)
commitb84eb3349265fc6c4cae066025eb9ecb4719d8fc (patch)
treec4f1c20b2189c1d480e7f50dd43c45e8c0a94847 /programs/Makefile
parentb8abffc394447236d13ec362d2689404acaa3c63 (diff)
parentab3e1d25350aa69654edf9ba384168e4e87ac05d (diff)
downloadlz4-b84eb3349265fc6c4cae066025eb9ecb4719d8fc.zip
lz4-b84eb3349265fc6c4cae066025eb9ecb4719d8fc.tar.gz
lz4-b84eb3349265fc6c4cae066025eb9ecb4719d8fc.tar.bz2
Merge pull request #182 from kou/add-missing-ext
Add missing $(EXT)
Diffstat (limited to 'programs/Makefile')
-rw-r--r--programs/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/programs/Makefile b/programs/Makefile
index 27d5922..2cf8e55 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -116,13 +116,13 @@ clean:
#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU))
-install: lz4 lz4c
+install: lz4$(EXT) lz4c$(EXT)
@echo Installing binaries
@install -d -m 755 $(DESTDIR)$(BINDIR)/ $(DESTDIR)$(MANDIR)/
- @install -m 755 lz4 $(DESTDIR)$(BINDIR)/lz4
- @ln -sf lz4 $(DESTDIR)$(BINDIR)/lz4cat
- @ln -sf lz4 $(DESTDIR)$(BINDIR)/unlz4
- @install -m 755 lz4c $(DESTDIR)$(BINDIR)/lz4c
+ @install -m 755 lz4$(EXT) $(DESTDIR)$(BINDIR)/lz4$(EXT)
+ @ln -sf lz4$(EXT) $(DESTDIR)$(BINDIR)/lz4cat$(EXT)
+ @ln -sf lz4$(EXT) $(DESTDIR)$(BINDIR)/unlz4$(EXT)
+ @install -m 755 lz4c$(EXT) $(DESTDIR)$(BINDIR)/lz4c$(EXT)
@echo Installing man pages
@install -m 644 lz4.1 $(DESTDIR)$(MANDIR)/lz4.1
@ln -sf lz4.1 $(DESTDIR)$(MANDIR)/lz4c.1
@@ -131,10 +131,10 @@ install: lz4 lz4c
@echo lz4 installation completed
uninstall:
- rm -f $(DESTDIR)$(BINDIR)/lz4cat
- rm -f $(DESTDIR)$(BINDIR)/unlz4
- [ -x $(DESTDIR)$(BINDIR)/lz4 ] && rm -f $(DESTDIR)$(BINDIR)/lz4
- [ -x $(DESTDIR)$(BINDIR)/lz4c ] && rm -f $(DESTDIR)$(BINDIR)/lz4c
+ rm -f $(DESTDIR)$(BINDIR)/lz4cat$(EXT)
+ rm -f $(DESTDIR)$(BINDIR)/unlz4$(EXT)
+ [ -x $(DESTDIR)$(BINDIR)/lz4$(EXT) ] && rm -f $(DESTDIR)$(BINDIR)/lz4$(EXT)
+ [ -x $(DESTDIR)$(BINDIR)/lz4c$(EXT) ] && rm -f $(DESTDIR)$(BINDIR)/lz4c$(EXT)
[ -f $(DESTDIR)$(MANDIR)/lz4.1 ] && rm -f $(DESTDIR)$(MANDIR)/lz4.1
rm -f $(DESTDIR)$(MANDIR)/lz4c.1
rm -f $(DESTDIR)$(MANDIR)/lz4cat.1