diff options
author | Milan Bouchet-Valat <nalimilan@club.fr> | 2015-03-27 17:36:25 +0100 |
---|---|---|
committer | Milan Bouchet-Valat <nalimilan@club.fr> | 2015-03-27 18:19:25 +0100 |
commit | 786a6e32825a90e99147d371ccd272d78b4d35ed (patch) | |
tree | 08ae63959a82c3de209213130ffd9247631c64a9 | |
parent | 164cc48aaf325cb4ffe227712e6488e1cb359d1c (diff) | |
download | libutf8proc-786a6e32825a90e99147d371ccd272d78b4d35ed.tar.gz libutf8proc-786a6e32825a90e99147d371ccd272d78b4d35ed.tar.bz2 |
Add support for DESTDIR in make install
Useful to build distribution packages.
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -74,12 +74,12 @@ libutf8proc.dylib: libutf8proc.$(MAJOR).dylib ln -f -s libutf8proc.$(MAJOR).dylib $@ install: libutf8proc.a libutf8proc.$(SHLIB_EXT) libutf8proc.$(SHLIB_VERS_EXT) - mkdir -m 755 -p $(includedir) - $(INSTALL) -m 644 utf8proc.h $(includedir) - mkdir -m 755 -p $(libdir) - $(INSTALL) -m 644 libutf8proc.a $(libdir) - $(INSTALL) -m 755 libutf8proc.$(SHLIB_VERS_EXT) $(libdir) - ln -f -s $(libdir)/libutf8proc.$(SHLIB_VERS_EXT) $(libdir)/libutf8proc.$(SHLIB_EXT) + mkdir -m 755 -p $(DESTDIR)$(includedir) + $(INSTALL) -m 644 utf8proc.h $(DESTDIR)$(includedir) + mkdir -m 755 -p $(DESTDIR)$(libdir) + $(INSTALL) -m 644 libutf8proc.a $(DESTDIR)$(libdir) + $(INSTALL) -m 755 libutf8proc.$(SHLIB_VERS_EXT) $(DESTDIR)$(libdir) + ln -f -s $(libdir)/libutf8proc.$(SHLIB_VERS_EXT) $(DESTDIR)$(libdir)/libutf8proc.$(SHLIB_EXT) # Test programs |