mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-08-04 02:06:31 -04:00
Makefile: improve portability of 'make install'
Resolves https://github.com/ebiggers/libdeflate/issues/47
This commit is contained in:
parent
debaabad37
commit
c9ed42ae3b
11
Makefile
11
Makefile
@ -262,12 +262,15 @@ DEFAULT_TARGETS += gunzip$(PROG_SUFFIX)
|
|||||||
|
|
||||||
all:$(DEFAULT_TARGETS)
|
all:$(DEFAULT_TARGETS)
|
||||||
|
|
||||||
|
# Install the files. Note: not all versions of the 'install' program have the
|
||||||
|
# '-D' and '-t' options, so don't use them; use portable commands only.
|
||||||
install:all
|
install:all
|
||||||
install -Dm644 -t $(DESTDIR)$(LIBDIR) $(STATIC_LIB)
|
install -d $(DESTDIR)$(LIBDIR) $(DESTDIR)$(INCDIR) $(DESTDIR)$(BINDIR)
|
||||||
install -Dm755 -t $(DESTDIR)$(LIBDIR) $(SHARED_LIB)
|
install -m644 $(STATIC_LIB) $(DESTDIR)$(LIBDIR)
|
||||||
|
install -m755 $(SHARED_LIB) $(DESTDIR)$(LIBDIR)
|
||||||
ln -sf $(SHARED_LIB) $(DESTDIR)$(LIBDIR)/libdeflate.so
|
ln -sf $(SHARED_LIB) $(DESTDIR)$(LIBDIR)/libdeflate.so
|
||||||
install -Dm644 -t $(DESTDIR)$(INCDIR) libdeflate.h
|
install -m644 libdeflate.h $(DESTDIR)$(INCDIR)
|
||||||
install -Dm755 gzip $(DESTDIR)$(BINDIR)/libdeflate-gzip
|
install -m755 gzip $(DESTDIR)$(BINDIR)/libdeflate-gzip
|
||||||
ln -f $(DESTDIR)$(BINDIR)/libdeflate-gzip $(DESTDIR)$(BINDIR)/libdeflate-gunzip
|
ln -f $(DESTDIR)$(BINDIR)/libdeflate-gzip $(DESTDIR)$(BINDIR)/libdeflate-gunzip
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user