diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2019-01-07 03:59:35 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2019-01-07 03:59:35 (GMT) |
commit | 61d3403d12364b5446a47291dc8f9cba6b7c7d00 (patch) | |
tree | 71dd9c6f2b1e8d457a35367bcdb7e73908487cc3 /hl/fortran/src/Makefile.am | |
parent | 619b0abfd66a07933803177d119aadfda7a9ee29 (diff) | |
download | hdf5-61d3403d12364b5446a47291dc8f9cba6b7c7d00.zip hdf5-61d3403d12364b5446a47291dc8f9cba6b7c7d00.tar.gz hdf5-61d3403d12364b5446a47291dc8f9cba6b7c7d00.tar.bz2 |
Remove install-exec-hook from hl/fortran/Makefile.am.
Add check for existing links in hl/fortran/src/Makefile.am.
Diffstat (limited to 'hl/fortran/src/Makefile.am')
-rw-r--r-- | hl/fortran/src/Makefile.am | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hl/fortran/src/Makefile.am b/hl/fortran/src/Makefile.am index 200a2ce..37e074c 100644 --- a/hl/fortran/src/Makefile.am +++ b/hl/fortran/src/Makefile.am @@ -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; |