Add support for DESTDIR in make install
Useful to build distribution packages.
This commit is contained in:
parent
164cc48aaf
commit
786a6e3282
12
Makefile
12
Makefile
@ -74,12 +74,12 @@ libutf8proc.dylib: libutf8proc.$(MAJOR).dylib
|
|||||||
ln -f -s libutf8proc.$(MAJOR).dylib $@
|
ln -f -s libutf8proc.$(MAJOR).dylib $@
|
||||||
|
|
||||||
install: libutf8proc.a libutf8proc.$(SHLIB_EXT) libutf8proc.$(SHLIB_VERS_EXT)
|
install: libutf8proc.a libutf8proc.$(SHLIB_EXT) libutf8proc.$(SHLIB_VERS_EXT)
|
||||||
mkdir -m 755 -p $(includedir)
|
mkdir -m 755 -p $(DESTDIR)$(includedir)
|
||||||
$(INSTALL) -m 644 utf8proc.h $(includedir)
|
$(INSTALL) -m 644 utf8proc.h $(DESTDIR)$(includedir)
|
||||||
mkdir -m 755 -p $(libdir)
|
mkdir -m 755 -p $(DESTDIR)$(libdir)
|
||||||
$(INSTALL) -m 644 libutf8proc.a $(libdir)
|
$(INSTALL) -m 644 libutf8proc.a $(DESTDIR)$(libdir)
|
||||||
$(INSTALL) -m 755 libutf8proc.$(SHLIB_VERS_EXT) $(libdir)
|
$(INSTALL) -m 755 libutf8proc.$(SHLIB_VERS_EXT) $(DESTDIR)$(libdir)
|
||||||
ln -f -s $(libdir)/libutf8proc.$(SHLIB_VERS_EXT) $(libdir)/libutf8proc.$(SHLIB_EXT)
|
ln -f -s $(libdir)/libutf8proc.$(SHLIB_VERS_EXT) $(DESTDIR)$(libdir)/libutf8proc.$(SHLIB_EXT)
|
||||||
|
|
||||||
# Test programs
|
# Test programs
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user