mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
Remove install-exec-hook from hl/fortran/Makefile.am.
Add check for existing links in hl/fortran/src/Makefile.am.
This commit is contained in:
parent
619b0abfd6
commit
61d3403d12
@ -26,18 +26,6 @@ include $(top_srcdir)/config/commence.am
|
||||
SUBDIRS=src test
|
||||
DIST_SUBDIRS=src test examples
|
||||
|
||||
# The name of the lib file doesn't follow the same pattern as the other hl lib
|
||||
# files, namely libhdf5_hl_*. Add a symlink with the compliant name to the
|
||||
# actual lib file.
|
||||
install-exec-hook:
|
||||
cd $(DESTDIR)$(libdir) && \
|
||||
if test -f libhdf5hl_fortran.a; then \
|
||||
$(LN_S) libhdf5hl_fortran.a libhdf5_hl_fortran.a; \
|
||||
fi; \
|
||||
if test -f libhdf5hl_fortran.so; then \
|
||||
$(LN_S) libhdf5hl_fortran.so libhdf5_hl_fortran.so; \
|
||||
fi;
|
||||
|
||||
# Install examples
|
||||
install-examples uninstall-examples:
|
||||
@(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;
|
||||
|
@ -55,10 +55,12 @@ libhdf5hl_fortran_la_LIBADD=$(LIBH5_HL) $(LIBH5F)
|
||||
# actual lib file.
|
||||
install-exec-hook:
|
||||
cd $(DESTDIR)$(libdir) && \
|
||||
if test -f libhdf5hl_fortran.a; then \
|
||||
if test -f libhdf5hl_fortran.a -a \
|
||||
! -f libhdf5_hl_fortran.a; then \
|
||||
$(LN_S) libhdf5hl_fortran.a libhdf5_hl_fortran.a; \
|
||||
fi; \
|
||||
if test -f libhdf5hl_fortran.so; then \
|
||||
if test -f libhdf5hl_fortran.so -a \
|
||||
! -f libhdf5_hl_fortran.so; then \
|
||||
$(LN_S) libhdf5hl_fortran.so libhdf5_hl_fortran.so; \
|
||||
fi;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user