diff options
author | Przemyslaw Skibinski <inikep@gmail.com> | 2016-11-09 15:23:08 (GMT) |
---|---|---|
committer | Przemyslaw Skibinski <inikep@gmail.com> | 2016-11-09 15:23:08 (GMT) |
commit | 063b4d92e10bb6b430e515e5cdd36b64fce6a01a (patch) | |
tree | 399a2a168009fffde54d8968d6a55f39e7f4daca /lib/Makefile | |
parent | 773ae50b477e052146f64c23e3b95d3cbc07db18 (diff) | |
download | lz4-063b4d92e10bb6b430e515e5cdd36b64fce6a01a.zip lz4-063b4d92e10bb6b430e515e5cdd36b64fce6a01a.tar.gz lz4-063b4d92e10bb6b430e515e5cdd36b64fce6a01a.tar.bz2 |
fixed make install
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Makefile b/lib/Makefile index 70bdfc7..6551dd9 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -70,9 +70,11 @@ else SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER) endif -default: all +default: lib -all: liblz4.a liblz4 +all: lib + +lib: liblz4.a liblz4 liblz4.a: *.c ifeq ($(BUILD_STATIC),yes) @@ -111,7 +113,7 @@ liblz4.pc: liblz4.pc.in Makefile -e 's|@VERSION@|$(LIBVER)|' \ $< >$@ -install: liblz4 liblz4.pc +install: lib liblz4.pc @install -d -m 755 $(DESTDIR)$(LIBDIR)/pkgconfig/ $(DESTDIR)$(INCLUDEDIR)/ @install -m 755 liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR) @ln -sf liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/liblz4.$(SHARED_EXT_MAJOR) |