commit f46b6a2b123f85414a11eb89b2ce475292064b4b parent 2f8469c3cc1809536426e5e4498c5b29abd648d9 Author: Steven G. Johnson <stevenj@mit.edu> Date: Fri, 27 Mar 2015 13:38:51 -0400 Merge pull request #31 from JuliaLang/nalimilan/destdir Nalimilan/destdir Diffstat:
M | Makefile | | | 16 | ++++++++++------ |
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile @@ -74,12 +74,16 @@ 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) +ifneq ($(OS),Darwin) + ln -f -s $(libdir)/libutf8proc.$(SHLIB_VERS_EXT) $(DESTDIR)$(libdir)/libutf8proc.so.$(MAJOR) + ln -f -s $(libdir)/libutf8proc.$(SHLIB_VERS_EXT) $(DESTDIR)$(libdir)/libutf8proc.so.$(MAJOR).$(MINOR) +endif # Test programs