Ticket #35342: sundials-2.5.0_destdir.patch

File sundials-2.5.0_destdir.patch, 72.0 KB (added by jjstickel (Jonathan Stickel), 12 years ago)
  • sundials-2.5.

    diff -ur sundials-2.5.0_orig/Makefile.in sundials-2.5.0_patched/Makefile.in
    old new  
    5858         done
    5959
    6060install:
    61         $(mkinstalldirs) $(bindir)
    62         $(INSTALL_PROG)  $(top_builddir)/bin/sundials-config    $(bindir)/
     61        $(mkinstalldirs) $(DESTDIR)$(bindir)
     62        $(INSTALL_PROG) $(top_builddir)/bin/sundials-config $(DESTDIR)$(bindir)/
    6363        @if test -f $(top_builddir)/bin/fortran-update.sh ; then              \
    64           $(INSTALL_PROG)  $(top_builddir)/bin/fortran-update.sh  $(bindir)/ ;\
     64          $(INSTALL_PROG)  $(top_builddir)/bin/fortran-update.sh  $(DESTDIR)$(bindir)/ ;\
    6565        fi
    6666        @for i in ${SLV_MODULES} ; do                                         \
    6767           if test -d $${i} ; then                                            \
     
    106106         done
    107107
    108108uninstall:
    109         rm -f $(bindir)/sundials-config
    110         rm -f $(bindir)/fortran-update.sh
     109        rm -f $(DESTDIR)$(bindir)/sundials-config
     110        rm -f $(DESTDIR)$(bindir)/fortran-update.sh
    111111        @for i in ${ALL_MODULES} ; do       \
    112112           if test -d $${i} ; then          \
    113113             echo "----------------------"; \
  • examples/cvode/fcmix_parallel/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/cvode/fcmix_parallel/Makefile.in sundials-2.5.0_patched/examples/cvode/fcmix_parallel/Makefile.in
    old new  
    7979        done
    8080
    8181install:
    82         $(mkinstalldirs) $(EXS_INSTDIR)/cvode/fcmix_parallel
    83         $(INSTALL_FILE) Makefile_ex  $(EXS_INSTDIR)/cvode/fcmix_parallel/Makefile
    84         $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/README  $(EXS_INSTDIR)/cvode/fcmix_parallel/
     82        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel
     83        $(INSTALL_FILE) Makefile_ex  $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/Makefile
     84        $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/README  $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/
    8585        for i in ${EXAMPLES} ; do \
    86           $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/$${i}.f   $(EXS_INSTDIR)/cvode/fcmix_parallel/ ; \
    87           $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/$${i}.out $(EXS_INSTDIR)/cvode/fcmix_parallel/ ; \
     86          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/ ; \
     87          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/ ; \
    8888        done
    8989
    9090uninstall:
    91         rm -f $(EXS_INSTDIR)/cvode/fcmix_parallel/Makefile
    92         rm -f $(EXS_INSTDIR)/cvode/fcmix_parallel/README
     91        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/Makefile
     92        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/README
    9393        for i in ${EXAMPLES} ; do \
    94           rm -f $(EXS_INSTDIR)/cvode/fcmix_parallel/$${i}.f ; \
    95           rm -f $(EXS_INSTDIR)/cvode/fcmix_parallel/$${i}.out ; \
     94          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/$${i}.f ; \
     95          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/$${i}.out ; \
    9696        done
    97         $(rminstalldirs) $(EXS_INSTDIR)/cvode/fcmix_parallel
    98         $(rminstalldirs) $(EXS_INSTDIR)/cvode
     97        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel
     98        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode
    9999
    100100clean:
    101101        rm -rf .libs
  • examples/cvode/fcmix_serial/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/cvode/fcmix_serial/Makefile.in sundials-2.5.0_patched/examples/cvode/fcmix_serial/Makefile.in
    old new  
    8888
    8989
    9090install:
    91         $(mkinstalldirs) $(EXS_INSTDIR)/cvode/fcmix_serial
    92         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvode/fcmix_serial/Makefile
    93         $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/README $(EXS_INSTDIR)/cvode/fcmix_serial/
     91        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial
     92        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/Makefile
     93        $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/README $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/
    9494        for i in ${EXAMPLES} ; do \
    95           $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
    96           $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.out $(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
     95          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
     96          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
    9797        done
    9898        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    9999        for i in ${EXAMPLES_BL} ; do \
    100           $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
    101           $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.out $(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
     100          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
     101          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
    102102        done ; \
    103103        fi
    104104
    105105uninstall:
    106         rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/Makefile
    107         rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/README
     106        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/Makefile
     107        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/README
    108108        for i in ${EXAMPLES} ; do \
    109           rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.f ; \
    110           rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.out ; \
     109          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.f ; \
     110          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.out ; \
    111111        done
    112112        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    113113        for i in ${EXAMPLES_BL} ; do \
    114           rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.f ; \
    115           rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.out ; \
     114          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.f ; \
     115          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.out ; \
    116116        done ; \
    117117        fi
    118         $(rminstalldirs) $(EXS_INSTDIR)/cvode/fcmix_serial
    119         $(rminstalldirs) $(EXS_INSTDIR)/cvode
     118        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial
     119        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode
    120120
    121121clean:
    122122        rm -rf .libs
  • examples/cvode/parallel/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/cvode/parallel/Makefile.in sundials-2.5.0_patched/examples/cvode/parallel/Makefile.in
    old new  
    7777        done
    7878
    7979install:
    80         $(mkinstalldirs) $(EXS_INSTDIR)/cvode/parallel
    81         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvode/parallel/Makefile
    82         $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/README $(EXS_INSTDIR)/cvode/parallel/
     80        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel
     81        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/Makefile
     82        $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/README $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/
    8383        for i in ${EXAMPLES} ; do \
    84           $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/$${i}.c   $(EXS_INSTDIR)/cvode/parallel/ ; \
    85           $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/$${i}.out $(EXS_INSTDIR)/cvode/parallel/ ; \
     84          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/ ; \
     85          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/ ; \
    8686        done
    8787
    8888uninstall:
    89         rm -f $(EXS_INSTDIR)/cvode/parallel/Makefile
    90         rm -f $(EXS_INSTDIR)/cvode/parallel/README
     89        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/Makefile
     90        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/README
    9191        for i in ${EXAMPLES} ; do \
    92           rm -f $(EXS_INSTDIR)/cvode/parallel/$${i}.c ; \
    93           rm -f $(EXS_INSTDIR)/cvode/parallel/$${i}.out ; \
     92          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/$${i}.c ; \
     93          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/$${i}.out ; \
    9494        done
    95         $(rminstalldirs) $(EXS_INSTDIR)/cvode/parallel
    96         $(rminstalldirs) $(EXS_INSTDIR)/cvode
     95        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel
     96        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode
    9797
    9898clean:
    9999        rm -rf .libs
  • examples/cvode/serial/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/cvode/serial/Makefile.in sundials-2.5.0_patched/examples/cvode/serial/Makefile.in
    old new  
    9191        fi
    9292
    9393install:
    94         $(mkinstalldirs) $(EXS_INSTDIR)/cvode/serial
    95         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvode/serial/Makefile
    96         $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/README $(EXS_INSTDIR)/cvode/serial/
     94        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/serial
     95        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/Makefile
     96        $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/README $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/
    9797        for i in ${EXAMPLES} ; do \
    98           $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.c   $(EXS_INSTDIR)/cvode/serial/ ; \
    99           $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.out $(EXS_INSTDIR)/cvode/serial/ ; \
     98          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/ ; \
     99          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/ ; \
    100100        done
    101101        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    102102        for i in ${EXAMPLES_BL} ; do \
    103           $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.c   $(EXS_INSTDIR)/cvode/serial/ ; \
    104           $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.out $(EXS_INSTDIR)/cvode/serial/ ; \
     103          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/ ; \
     104          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/ ; \
    105105        done ; \
    106106        fi
    107107
    108108uninstall:
    109         rm -f $(EXS_INSTDIR)/cvode/serial/Makefile
    110         rm -f $(EXS_INSTDIR)/cvode/serial/README
     109        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/Makefile
     110        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/README
    111111        for i in ${EXAMPLES} ; do \
    112           rm -f $(EXS_INSTDIR)/cvode/serial/$${i}.c ; \
    113           rm -f $(EXS_INSTDIR)/cvode/serial/$${i}.out ; \
     112          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/$${i}.c ; \
     113          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/$${i}.out ; \
    114114        done
    115115        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    116116        for i in ${EXAMPLES_BL} ; do \
    117           rm -f $(EXS_INSTDIR)/cvode/serial/$${i}.c ; \
    118           rm -f $(EXS_INSTDIR)/cvode/serial/$${i}.out ; \
     117          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/$${i}.c ; \
     118          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/$${i}.out ; \
    119119        done ; \
    120120        fi
    121         $(rminstalldirs) $(EXS_INSTDIR)/cvode/serial
    122         $(rminstalldirs) $(EXS_INSTDIR)/cvode
     121        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/serial
     122        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode
    123123
    124124clean:
    125125        rm -rf .libs
  • examples/cvodes/parallel/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/cvodes/parallel/Makefile.in sundials-2.5.0_patched/examples/cvodes/parallel/Makefile.in
    old new  
    8080        done
    8181
    8282install:
    83         $(mkinstalldirs) $(EXS_INSTDIR)/cvodes/parallel
    84         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvodes/parallel/Makefile
    85         $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/README $(EXS_INSTDIR)/cvodes/parallel/
     83        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel
     84        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/Makefile
     85        $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/README $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/
    8686        for i in ${EXAMPLES} ; do \
    87           $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/$${i}.c   $(EXS_INSTDIR)/cvodes/parallel/ ; \
    88           $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/$${i}.out $(EXS_INSTDIR)/cvodes/parallel/ ; \
     87          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/ ; \
     88          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/ ; \
    8989        done
    9090
    9191uninstall:
    92         rm -f $(EXS_INSTDIR)/cvodes/parallel/Makefile
    93         rm -f $(EXS_INSTDIR)/cvodes/parallel/README
     92        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/Makefile
     93        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/README
    9494        for i in ${EXAMPLES} ; do \
    95           rm -f $(EXS_INSTDIR)/cvodes/parallel/$${i}.c ; \
    96           rm -f $(EXS_INSTDIR)/cvodes/parallel/$${i}.out ; \
     95          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/$${i}.c ; \
     96          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/$${i}.out ; \
    9797        done
    98         $(rminstalldirs) $(EXS_INSTDIR)/cvodes/parallel
    99         $(rminstalldirs) $(EXS_INSTDIR)/cvodes
     98        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel
     99        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes
    100100
    101101clean:
    102102        rm -rf .libs
  • examples/cvodes/serial/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/cvodes/serial/Makefile.in sundials-2.5.0_patched/examples/cvodes/serial/Makefile.in
    old new  
    9898        fi
    9999
    100100install:
    101         $(mkinstalldirs) $(EXS_INSTDIR)/cvodes/serial
    102         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvodes/serial/Makefile
    103         $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/README $(EXS_INSTDIR)/cvodes/serial/
     101        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial
     102        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/Makefile
     103        $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/README $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/
    104104        for i in ${EXAMPLES} ; do \
    105           $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.c   $(EXS_INSTDIR)/cvodes/serial/ ; \
    106           $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.out $(EXS_INSTDIR)/cvodes/serial/ ; \
     105          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/ ; \
     106          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/ ; \
    107107        done
    108108        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    109109        for i in ${EXAMPLES_BL} ; do \
    110           $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.c   $(EXS_INSTDIR)/cvodes/serial/ ; \
    111           $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.out $(EXS_INSTDIR)/cvodes/serial/ ; \
     110          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/ ; \
     111          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/ ; \
    112112        done ; \
    113113        fi
    114114
    115115uninstall:
    116         rm -f $(EXS_INSTDIR)/cvodes/serial/Makefile
    117         rm -f $(EXS_INSTDIR)/cvodes/serial/README
     116        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/Makefile
     117        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/README
    118118        for i in ${EXAMPLES} ; do \
    119           rm -f $(EXS_INSTDIR)/cvodes/serial/$${i}.c ; \
    120           rm -f $(EXS_INSTDIR)/cvodes/serial/$${i}.out ; \
     119          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/$${i}.c ; \
     120          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/$${i}.out ; \
    121121        done
    122122        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    123123        for i in ${EXAMPLES_BL} ; do \
    124           rm -f $(EXS_INSTDIR)/cvodes/serial/$${i}.c ; \
    125           rm -f $(EXS_INSTDIR)/cvodes/serial/$${i}.out ; \
     124          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/$${i}.c ; \
     125          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/$${i}.out ; \
    126126        done ; \
    127127        fi
    128         $(rminstalldirs) $(EXS_INSTDIR)/cvodes/serial
    129         $(rminstalldirs) $(EXS_INSTDIR)/cvodes
     128        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial
     129        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes
    130130
    131131clean:
    132132        rm -rf .libs
  • examples/ida/fcmix_parallel/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/ida/fcmix_parallel/Makefile.in sundials-2.5.0_patched/examples/ida/fcmix_parallel/Makefile.in
    old new  
    7777        done
    7878
    7979install:
    80         $(mkinstalldirs) $(EXS_INSTDIR)/ida/fcmix_parallel
    81         $(INSTALL_FILE) Makefile_ex  $(EXS_INSTDIR)/ida/fcmix_parallel/Makefile
    82         $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/README  $(EXS_INSTDIR)/ida/fcmix_parallel/
     80        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel
     81        $(INSTALL_FILE) Makefile_ex  $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/Makefile
     82        $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/README  $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/
    8383        for i in ${EXAMPLES} ; do \
    84           $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/$${i}.f   $(EXS_INSTDIR)/ida/fcmix_parallel/ ; \
    85           $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/$${i}.out $(EXS_INSTDIR)/ida/fcmix_parallel/ ; \
     84          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/ ; \
     85          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/ ; \
    8686        done
    8787
    8888uninstall:
    89         rm -f $(EXS_INSTDIR)/ida/fcmix_parallel/Makefile
    90         rm -f $(EXS_INSTDIR)/ida/fcmix_parallel/README
     89        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/Makefile
     90        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/README
    9191        for i in ${EXAMPLES} ; do \
    92           rm -f $(EXS_INSTDIR)/ida/fcmix_parallel/$${i}.f ; \
    93           rm -f $(EXS_INSTDIR)/ida/fcmix_parallel/$${i}.out ; \
     92          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/$${i}.f ; \
     93          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/$${i}.out ; \
    9494        done
    95         $(rminstalldirs) $(EXS_INSTDIR)/ida/fcmix_parallel
    96         $(rminstalldirs) $(EXS_INSTDIR)/ida
     95        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel
     96        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida
    9797
    9898clean:
    9999        rm -rf .libs
  • examples/ida/fcmix_serial/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/ida/fcmix_serial/Makefile.in sundials-2.5.0_patched/examples/ida/fcmix_serial/Makefile.in
    old new  
    8585
    8686
    8787install:
    88         $(mkinstalldirs) $(EXS_INSTDIR)/ida/fcmix_serial
    89         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/ida/fcmix_serial/Makefile
    90         $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/README $(EXS_INSTDIR)/ida/fcmix_serial/
     88        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial
     89        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/Makefile
     90        $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/README $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/
    9191        for i in ${EXAMPLES} ; do \
    92           $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/ida/fcmix_serial/ ; \
    93           $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.out $(EXS_INSTDIR)/ida/fcmix_serial/ ; \
     92          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/ ; \
     93          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/ ; \
    9494        done
    9595        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    9696        for i in ${EXAMPLES_BL} ; do \
    97           $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/ida/fcmix_serial/ ; \
    98           $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.out $(EXS_INSTDIR)/ida/fcmix_serial/ ; \
     97          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/ ; \
     98          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/ ; \
    9999        done ; \
    100100        fi
    101101
    102102uninstall:
    103         rm -f $(EXS_INSTDIR)/ida/fcmix_serial/Makefile
    104         rm -f $(EXS_INSTDIR)/ida/fcmix_serial/README
     103        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/Makefile
     104        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/README
    105105        for i in ${EXAMPLES} ; do \
    106           rm -f $(EXS_INSTDIR)/ida/fcmix_serial/$${i}.f ; \
    107           rm -f $(EXS_INSTDIR)/ida/fcmix_serial/$${i}.out ; \
     106          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/$${i}.f ; \
     107          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/$${i}.out ; \
    108108        done
    109109        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    110110        for i in ${EXAMPLES_BL} ; do \
    111           rm -f $(EXS_INSTDIR)/ida/fcmix_serial/$${i}.f ; \
    112           rm -f $(EXS_INSTDIR)/ida/fcmix_serial/$${i}.out ; \
     111          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/$${i}.f ; \
     112          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/$${i}.out ; \
    113113        done ; \
    114114        fi
    115         $(rminstalldirs) $(EXS_INSTDIR)/ida/fcmix_serial
    116         $(rminstalldirs) $(EXS_INSTDIR)/ida
     115        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial
     116        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida
    117117
    118118clean:
    119119        rm -rf .libs
  • examples/ida/parallel/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/ida/parallel/Makefile.in sundials-2.5.0_patched/examples/ida/parallel/Makefile.in
    old new  
    7777        done
    7878
    7979install:
    80         $(mkinstalldirs) $(EXS_INSTDIR)/ida/parallel
    81         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/ida/parallel/Makefile
    82         $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/README $(EXS_INSTDIR)/ida/parallel/
     80        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/parallel
     81        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/Makefile
     82        $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/README $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/
    8383        for i in ${EXAMPLES} ; do \
    84           $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/$${i}.c   $(EXS_INSTDIR)/ida/parallel/ ; \
    85           $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/$${i}.out $(EXS_INSTDIR)/ida/parallel/ ; \
     84          $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/ ; \
     85          $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/ ; \
    8686        done
    8787
    8888uninstall:
    89         rm -f $(EXS_INSTDIR)/ida/parallel/Makefile
    90         rm -f $(EXS_INSTDIR)/ida/parallel/README
     89        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/Makefile
     90        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/README
    9191        for i in ${EXAMPLES} ; do \
    92           rm -f $(EXS_INSTDIR)/ida/parallel/$${i}.c ; \
    93           rm -f $(EXS_INSTDIR)/ida/parallel/$${i}.out ; \
     92          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/$${i}.c ; \
     93          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/$${i}.out ; \
    9494        done
    95         $(rminstalldirs) $(EXS_INSTDIR)/ida/parallel
    96         $(rminstalldirs) $(EXS_INSTDIR)/ida
     95        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/parallel
     96        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida
    9797
    9898clean:
    9999        rm -rf .libs
  • examples/ida/serial/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/ida/serial/Makefile.in sundials-2.5.0_patched/examples/ida/serial/Makefile.in
    old new  
    8686        fi
    8787
    8888install:
    89         $(mkinstalldirs) $(EXS_INSTDIR)/ida/serial
    90         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/ida/serial/Makefile
    91         $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/README $(EXS_INSTDIR)/ida/serial/
     89        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/serial
     90        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/ida/serial/Makefile
     91        $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/README $(DESTDIR)$(EXS_INSTDIR)/ida/serial/
    9292        for i in ${EXAMPLES} ; do \
    93           $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.c   $(EXS_INSTDIR)/ida/serial/ ; \
    94           $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.out $(EXS_INSTDIR)/ida/serial/ ; \
     93          $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/ida/serial/ ; \
     94          $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/serial/ ; \
    9595        done
    9696        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    9797        for i in ${EXAMPLES_BL} ; do \
    98           $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.c   $(EXS_INSTDIR)/ida/serial/ ; \
    99           $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.out $(EXS_INSTDIR)/ida/serial/ ; \
     98          $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/ida/serial/ ; \
     99          $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/serial/ ; \
    100100        done ; \
    101101        fi
    102102
    103103uninstall:
    104         rm -f $(EXS_INSTDIR)/ida/serial/Makefile
    105         rm -f $(EXS_INSTDIR)/ida/serial/README
     104        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/Makefile
     105        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/README
    106106        for i in ${EXAMPLES} ; do \
    107           rm -f $(EXS_INSTDIR)/ida/serial/$${i}.c ; \
    108           rm -f $(EXS_INSTDIR)/ida/serial/$${i}.out ; \
     107          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/$${i}.c ; \
     108          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/$${i}.out ; \
    109109        done
    110110        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    111111        for i in ${EXAMPLES_BL} ; do \
    112           rm -f $(EXS_INSTDIR)/ida/serial/$${i}.c ; \
    113           rm -f $(EXS_INSTDIR)/ida/serial/$${i}.out ; \
     112          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/$${i}.c ; \
     113          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/$${i}.out ; \
    114114        done ; \
    115115        fi
    116         $(rminstalldirs) $(EXS_INSTDIR)/ida/serial
    117         $(rminstalldirs) $(EXS_INSTDIR)/ida
     116        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/serial
     117        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida
    118118
    119119clean:
    120120        rm -rf .libs
  • examples/idas/parallel/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/idas/parallel/Makefile.in sundials-2.5.0_patched/examples/idas/parallel/Makefile.in
    old new  
    8181        done
    8282
    8383install:
    84         $(mkinstalldirs) $(EXS_INSTDIR)/idas/parallel
    85         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/idas/parallel/Makefile
    86         $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/README $(EXS_INSTDIR)/idas/parallel/
     84        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas/parallel
     85        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/Makefile
     86        $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/README $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/
    8787        for i in ${EXAMPLES} ; do \
    88           $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/$${i}.c   $(EXS_INSTDIR)/idas/parallel/ ; \
    89           $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/$${i}.out $(EXS_INSTDIR)/idas/parallel/ ; \
     88          $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/ ; \
     89          $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/ ; \
    9090        done
    9191
    9292uninstall:
    93         rm -f $(EXS_INSTDIR)/idas/parallel/Makefile
    94         rm -f $(EXS_INSTDIR)/idas/parallel/README
     93        rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/Makefile
     94        rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/README
    9595        for i in ${EXAMPLES} ; do \
    96           rm -f $(EXS_INSTDIR)/idas/parallel/$${i}.c ; \
    97           rm -f $(EXS_INSTDIR)/idas/parallel/$${i}.out ; \
     96          rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/$${i}.c ; \
     97          rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/$${i}.out ; \
    9898        done
    99         $(rminstalldirs) $(EXS_INSTDIR)/idas/parallel
    100         $(rminstalldirs) $(EXS_INSTDIR)/idas
     99        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas/parallel
     100        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas
    101101
    102102clean:
    103103        rm -rf .libs
  • examples/idas/serial/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/idas/serial/Makefile.in sundials-2.5.0_patched/examples/idas/serial/Makefile.in
    old new  
    9292        fi
    9393
    9494install:
    95         $(mkinstalldirs) $(EXS_INSTDIR)/idas/serial
    96         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/idas/serial/Makefile
    97         $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/README $(EXS_INSTDIR)/idas/serial/
     95        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas/serial
     96        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/idas/serial/Makefile
     97        $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/README $(DESTDIR)$(EXS_INSTDIR)/idas/serial/
    9898        for i in ${EXAMPLES} ; do \
    99           $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.c   $(EXS_INSTDIR)/idas/serial/ ; \
    100           $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.out $(EXS_INSTDIR)/idas/serial/ ; \
     99          $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/idas/serial/ ; \
     100          $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/idas/serial/ ; \
    101101        done
    102102        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    103103        for i in ${EXAMPLES_BL} ; do \
    104           $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.c   $(EXS_INSTDIR)/idas/serial/ ; \
    105           $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.out $(EXS_INSTDIR)/idas/serial/ ; \
     104          $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/idas/serial/ ; \
     105          $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/idas/serial/ ; \
    106106        done ; \
    107107        fi
    108108
    109109uninstall:
    110         rm -f $(EXS_INSTDIR)/idas/serial/Makefile
    111         rm -f $(EXS_INSTDIR)/idas/serial/README
     110        rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/Makefile
     111        rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/README
    112112        for i in ${EXAMPLES} ; do \
    113           rm -f $(EXS_INSTDIR)/idas/serial/$${i}.c ; \
    114           rm -f $(EXS_INSTDIR)/idas/serial/$${i}.out ; \
     113          rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/$${i}.c ; \
     114          rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/$${i}.out ; \
    115115        done
    116116        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    117117        for i in ${EXAMPLES_BL} ; do \
    118           rm -f $(EXS_INSTDIR)/idas/serial/$${i}.c ; \
    119           rm -f $(EXS_INSTDIR)/idas/serial/$${i}.out ; \
     118          rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/$${i}.c ; \
     119          rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/$${i}.out ; \
    120120        done ; \
    121121        fi
    122         $(rminstalldirs) $(EXS_INSTDIR)/idas/serial
    123         $(rminstalldirs) $(EXS_INSTDIR)/idas
     122        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas/serial
     123        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas
    124124
    125125clean:
    126126        rm -rf .libs
  • examples/kinsol/fcmix_parallel/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/kinsol/fcmix_parallel/Makefile.in sundials-2.5.0_patched/examples/kinsol/fcmix_parallel/Makefile.in
    old new  
    7777        done
    7878
    7979install:
    80         $(mkinstalldirs) $(EXS_INSTDIR)/kinsol/fcmix_parallel
    81         $(INSTALL_FILE) Makefile_ex  $(EXS_INSTDIR)/kinsol/fcmix_parallel/Makefile
    82         $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/README  $(EXS_INSTDIR)/kinsol/fcmix_parallel/
     80        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel
     81        $(INSTALL_FILE) Makefile_ex  $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/Makefile
     82        $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/README  $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/
    8383        for i in ${EXAMPLES} ; do \
    84           $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/$${i}.f   $(EXS_INSTDIR)/kinsol/fcmix_parallel/ ; \
    85           $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/$${i}.out $(EXS_INSTDIR)/kinsol/fcmix_parallel/ ; \
     84          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/ ; \
     85          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/ ; \
    8686        done
    8787
    8888uninstall:
    89         rm -f $(EXS_INSTDIR)/kinsol/fcmix_parallel/Makefile
    90         rm -f $(EXS_INSTDIR)/kinsol/fcmix_parallel/README
     89        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/Makefile
     90        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/README
    9191        for i in ${EXAMPLES} ; do \
    92           rm -f $(EXS_INSTDIR)/kinsol/fcmix_parallel/$${i}.f ; \
    93           rm -f $(EXS_INSTDIR)/kinsol/fcmix_parallel/$${i}.out ; \
     92          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/$${i}.f ; \
     93          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/$${i}.out ; \
    9494        done
    95         $(rminstalldirs) $(EXS_INSTDIR)/kinsol/fcmix_parallel
    96         $(rminstalldirs) $(EXS_INSTDIR)/kinsol
     95        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel
     96        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol
    9797
    9898clean:
    9999        rm -rf .libs
  • examples/kinsol/fcmix_serial/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/kinsol/fcmix_serial/Makefile.in sundials-2.5.0_patched/examples/kinsol/fcmix_serial/Makefile.in
    old new  
    8585
    8686
    8787install:
    88         $(mkinstalldirs) $(EXS_INSTDIR)/kinsol/fcmix_serial
    89         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/kinsol/fcmix_serial/Makefile
    90         $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/README $(EXS_INSTDIR)/kinsol/fcmix_serial/
     88        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial
     89        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/Makefile
     90        $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/README $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/
    9191        for i in ${EXAMPLES} ; do \
    92           $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
    93           $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.out $(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
     92          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
     93          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
    9494        done
    9595        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    9696        for i in ${EXAMPLES_BL} ; do \
    97           $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
    98           $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.out $(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
     97          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
     98          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
    9999        done ; \
    100100        fi
    101101
    102102uninstall:
    103         rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/Makefile
    104         rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/README
     103        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/Makefile
     104        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/README
    105105        for i in ${EXAMPLES} ; do \
    106           rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.f ; \
    107           rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.out ; \
     106          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.f ; \
     107          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.out ; \
    108108        done
    109109        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    110110        for i in ${EXAMPLES_BL} ; do \
    111           rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.f ; \
    112           rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.out ; \
     111          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.f ; \
     112          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.out ; \
    113113        done ; \
    114114        fi
    115         $(rminstalldirs) $(EXS_INSTDIR)/kinsol/fcmix_serial
    116         $(rminstalldirs) $(EXS_INSTDIR)/kinsol
     115        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial
     116        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol
    117117
    118118clean:
    119119        rm -rf .libs
  • examples/kinsol/parallel/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/kinsol/parallel/Makefile.in sundials-2.5.0_patched/examples/kinsol/parallel/Makefile.in
    old new  
    7575        done
    7676
    7777install:
    78         $(mkinstalldirs) $(EXS_INSTDIR)/kinsol/parallel
    79         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/kinsol/parallel/Makefile
    80         $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/README $(EXS_INSTDIR)/kinsol/parallel/
     78        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel
     79        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/Makefile
     80        $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/README $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/
    8181        for i in ${EXAMPLES} ; do \
    82           $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/$${i}.c   $(EXS_INSTDIR)/kinsol/parallel/ ; \
    83           $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/$${i}.out $(EXS_INSTDIR)/kinsol/parallel/ ; \
     82          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/ ; \
     83          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/ ; \
    8484        done
    8585
    8686uninstall:
    87         rm -f $(EXS_INSTDIR)/kinsol/parallel/Makefile
    88         rm -f $(EXS_INSTDIR)/kinsol/parallel/README
     87        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/Makefile
     88        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/README
    8989        for i in ${EXAMPLES} ; do \
    90           rm -f $(EXS_INSTDIR)/kinsol/parallel/$${i}.c ; \
    91           rm -f $(EXS_INSTDIR)/kinsol/parallel/$${i}.out ; \
     90          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/$${i}.c ; \
     91          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/$${i}.out ; \
    9292        done
    93         $(rminstalldirs) $(EXS_INSTDIR)/kinsol/parallel
    94         $(rminstalldirs) $(EXS_INSTDIR)/kinsol
     93        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel
     94        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol
    9595
    9696clean:
    9797        rm -rf .libs
  • examples/kinsol/serial/Makefile.in

    diff -ur sundials-2.5.0_orig/examples/kinsol/serial/Makefile.in sundials-2.5.0_patched/examples/kinsol/serial/Makefile.in
    old new  
    8585        fi
    8686
    8787install:
    88         $(mkinstalldirs) $(EXS_INSTDIR)/kinsol/serial
    89         $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/kinsol/serial/Makefile
    90         $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/README $(EXS_INSTDIR)/kinsol/serial/
     88        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial
     89        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/Makefile
     90        $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/README $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/
    9191        for i in ${EXAMPLES} ; do \
    92           $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.c   $(EXS_INSTDIR)/kinsol/serial/ ; \
    93           $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.out $(EXS_INSTDIR)/kinsol/serial/ ; \
     92          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/ ; \
     93          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/ ; \
    9494        done
    9595        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    9696        for i in ${EXAMPLES_BL} ; do \
    97           $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.c   $(EXS_INSTDIR)/kinsol/serial/ ; \
    98           $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.out $(EXS_INSTDIR)/kinsol/serial/ ; \
     97          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/ ; \
     98          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/ ; \
    9999        done ; \
    100100        fi
    101101
    102102uninstall:
    103         rm -f $(EXS_INSTDIR)/kinsol/serial/Makefile
    104         rm -f $(EXS_INSTDIR)/kinsol/serial/README
     103        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/Makefile
     104        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/README
    105105        for i in ${EXAMPLES} ; do \
    106           rm -f $(EXS_INSTDIR)/kinsol/serial/$${i}.c ; \
    107           rm -f $(EXS_INSTDIR)/kinsol/serial/$${i}.out ; \
     106          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/$${i}.c ; \
     107          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/$${i}.out ; \
    108108        done
    109109        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    110110        for i in ${EXAMPLES_BL} ; do \
    111           rm -f $(EXS_INSTDIR)/kinsol/serial/$${i}.c ; \
    112           rm -f $(EXS_INSTDIR)/kinsol/serial/$${i}.out ; \
     111          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/$${i}.c ; \
     112          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/$${i}.out ; \
    113113        done ; \
    114114        fi
    115         $(rminstalldirs) $(EXS_INSTDIR)/kinsol/serial
    116         $(rminstalldirs) $(EXS_INSTDIR)/kinsol
     115        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial
     116        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol
    117117
    118118clean:
    119119        rm -rf .libs
  • src/cvode/Makefile.in

    diff -ur sundials-2.5.0_orig/src/cvode/Makefile.in sundials-2.5.0_patched/src/cvode/Makefile.in
    old new  
    9191        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(CVODE_LIB) $(CVODE_LIB_FILES)  $(CVODE_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
    9292
    9393install: $(CVODE_LIB)
    94         $(mkinstalldirs) $(includedir)/cvode
    95         $(mkinstalldirs) $(libdir)
    96         $(LIBTOOL) --mode=install $(INSTALL_LIB) $(CVODE_LIB) $(libdir)
    97         $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode.h         $(includedir)/cvode/
    98         $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_direct.h  $(includedir)/cvode/
    99         $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_dense.h   $(includedir)/cvode/
    100         $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_band.h    $(includedir)/cvode/
    101         $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_diag.h    $(includedir)/cvode/
    102         $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spils.h   $(includedir)/cvode/
    103         $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spbcgs.h  $(includedir)/cvode/
    104         $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spgmr.h   $(includedir)/cvode/
    105         $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_sptfqmr.h $(includedir)/cvode/
    106         $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_bandpre.h $(includedir)/cvode/
    107         $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_bbdpre.h  $(includedir)/cvode/
    108         $(INSTALL_HEADER) $(top_srcdir)/src/cvode/cvode_impl.h        $(includedir)/cvode/
     94        $(mkinstalldirs) $(DESTDIR)$(includedir)/cvode
     95        $(mkinstalldirs) $(DESTDIR)$(libdir)
     96        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(CVODE_LIB) $(DESTDIR)$(libdir)
     97        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode.h         $(DESTDIR)$(includedir)/cvode/
     98        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_direct.h  $(DESTDIR)$(includedir)/cvode/
     99        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_dense.h   $(DESTDIR)$(includedir)/cvode/
     100        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_band.h    $(DESTDIR)$(includedir)/cvode/
     101        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_diag.h    $(DESTDIR)$(includedir)/cvode/
     102        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spils.h   $(DESTDIR)$(includedir)/cvode/
     103        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spbcgs.h  $(DESTDIR)$(includedir)/cvode/
     104        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spgmr.h   $(DESTDIR)$(includedir)/cvode/
     105        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_sptfqmr.h $(DESTDIR)$(includedir)/cvode/
     106        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_bandpre.h $(DESTDIR)$(includedir)/cvode/
     107        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_bbdpre.h  $(DESTDIR)$(includedir)/cvode/
     108        $(INSTALL_HEADER) $(top_srcdir)/src/cvode/cvode_impl.h        $(DESTDIR)$(includedir)/cvode/
    109109        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    110           $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_lapack.h  $(includedir)/cvode/ ; \
     110          $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_lapack.h  $(DESTDIR)$(includedir)/cvode/ ; \
    111111        fi
    112112
    113113uninstall:
    114         $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(CVODE_LIB)
    115         rm -f $(includedir)/cvode/cvode.h
    116         rm -f $(includedir)/cvode/cvode_direct.h
    117         rm -f $(includedir)/cvode/cvode_dense.h
    118         rm -f $(includedir)/cvode/cvode_band.h
    119         rm -f $(includedir)/cvode/cvode_diag.h
    120         rm -f $(includedir)/cvode/cvode_lapack.h
    121         rm -f $(includedir)/cvode/cvode_spils.h
    122         rm -f $(includedir)/cvode/cvode_spbcgs.h
    123         rm -f $(includedir)/cvode/cvode_spgmr.h
    124         rm -f $(includedir)/cvode/cvode_sptfqmr.h
    125         rm -f $(includedir)/cvode/cvode_bandpre.h
    126         rm -f $(includedir)/cvode/cvode_bbdpre.h
    127         rm -f $(includedir)/cvode/cvode_impl.h
    128         $(rminstalldirs) $(includedir)/cvode
     114        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(CVODE_LIB)
     115        rm -f $(DESTDIR)$(includedir)/cvode/cvode.h
     116        rm -f $(DESTDIR)$(includedir)/cvode/cvode_direct.h
     117        rm -f $(DESTDIR)$(includedir)/cvode/cvode_dense.h
     118        rm -f $(DESTDIR)$(includedir)/cvode/cvode_band.h
     119        rm -f $(DESTDIR)$(includedir)/cvode/cvode_diag.h
     120        rm -f $(DESTDIR)$(includedir)/cvode/cvode_lapack.h
     121        rm -f $(DESTDIR)$(includedir)/cvode/cvode_spils.h
     122        rm -f $(DESTDIR)$(includedir)/cvode/cvode_spbcgs.h
     123        rm -f $(DESTDIR)$(includedir)/cvode/cvode_spgmr.h
     124        rm -f $(DESTDIR)$(includedir)/cvode/cvode_sptfqmr.h
     125        rm -f $(DESTDIR)$(includedir)/cvode/cvode_bandpre.h
     126        rm -f $(DESTDIR)$(includedir)/cvode/cvode_bbdpre.h
     127        rm -f $(DESTDIR)$(includedir)/cvode/cvode_impl.h
     128        $(rminstalldirs) $(DESTDIR)$(includedir)/cvode
    129129
    130130shared:
    131131        @cd ${top_builddir}/src/sundials ; \
  • src/cvode/fcmix/Makefile.in

    diff -ur sundials-2.5.0_orig/src/cvode/fcmix/Makefile.in sundials-2.5.0_patched/src/cvode/fcmix/Makefile.in
    old new  
    7878        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(FCVODE_LIB) $(FCVODE_LIB_FILES) $(FCVODE_BL_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -static -version-info $(LIB_REVISION)
    7979
    8080install: $(FCVODE_LIB)
    81         $(mkinstalldirs) $(libdir)
    82         $(LIBTOOL) --mode=install $(INSTALL_LIB) $(FCVODE_LIB) $(libdir)
     81        $(mkinstalldirs) $(DESTDIR)$(libdir)
     82        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(FCVODE_LIB) $(DESTDIR)$(libdir)
    8383
    8484uninstall:
    85         $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(FCVODE_LIB)
     85        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(FCVODE_LIB)
    8686
    8787clean:
    8888        $(LIBTOOL) --mode=clean rm -f $(FCVODE_LIB)
  • src/cvodes/Makefile.in

    diff -ur sundials-2.5.0_orig/src/cvodes/Makefile.in sundials-2.5.0_patched/src/cvodes/Makefile.in
    old new  
    9191        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(CVODES_LIB) $(CVODES_LIB_FILES) $(CVODES_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
    9292
    9393install: $(CVODES_LIB)
    94         $(mkinstalldirs) $(includedir)/cvodes
    95         $(mkinstalldirs) $(libdir)
    96         $(LIBTOOL) --mode=install $(INSTALL_LIB) $(CVODES_LIB) $(libdir)
    97         $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes.h         $(includedir)/cvodes/
    98         $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_direct.h  $(includedir)/cvodes/
    99         $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_dense.h   $(includedir)/cvodes/
    100         $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_band.h    $(includedir)/cvodes/
    101         $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_diag.h    $(includedir)/cvodes/
    102         $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spils.h   $(includedir)/cvodes/
    103         $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spbcgs.h  $(includedir)/cvodes/
    104         $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spgmr.h   $(includedir)/cvodes/
    105         $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_sptfqmr.h $(includedir)/cvodes/
    106         $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_bandpre.h $(includedir)/cvodes/
    107         $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_bbdpre.h  $(includedir)/cvodes/
    108         $(INSTALL_HEADER) $(top_srcdir)/src/cvodes/cvodes_impl.h        $(includedir)/cvodes/
     94        $(mkinstalldirs) $(DESTDIR)$(includedir)/cvodes
     95        $(mkinstalldirs) $(DESTDIR)$(libdir)
     96        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(CVODES_LIB) $(DESTDIR)$(libdir)
     97        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes.h         $(DESTDIR)$(includedir)/cvodes/
     98        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_direct.h  $(DESTDIR)$(includedir)/cvodes/
     99        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_dense.h   $(DESTDIR)$(includedir)/cvodes/
     100        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_band.h    $(DESTDIR)$(includedir)/cvodes/
     101        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_diag.h    $(DESTDIR)$(includedir)/cvodes/
     102        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spils.h   $(DESTDIR)$(includedir)/cvodes/
     103        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spbcgs.h  $(DESTDIR)$(includedir)/cvodes/
     104        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spgmr.h   $(DESTDIR)$(includedir)/cvodes/
     105        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_sptfqmr.h $(DESTDIR)$(includedir)/cvodes/
     106        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_bandpre.h $(DESTDIR)$(includedir)/cvodes/
     107        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_bbdpre.h  $(DESTDIR)$(includedir)/cvodes/
     108        $(INSTALL_HEADER) $(top_srcdir)/src/cvodes/cvodes_impl.h        $(DESTDIR)$(includedir)/cvodes/
    109109        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    110           $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_lapack.h  $(includedir)/cvodes/ ; \
     110          $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_lapack.h  $(DESTDIR)$(includedir)/cvodes/ ; \
    111111        fi
    112112
    113113uninstall:
    114         $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(CVODES_LIB)
    115         rm -f $(includedir)/cvodes/cvodes.h
    116         rm -f $(includedir)/cvodes/cvodes_direct.h
    117         rm -f $(includedir)/cvodes/cvodes_dense.h
    118         rm -f $(includedir)/cvodes/cvodes_band.h
    119         rm -f $(includedir)/cvodes/cvodes_diag.h
    120         rm -f $(includedir)/cvodes/cvodes_lapack.h
    121         rm -f $(includedir)/cvodes/cvodes_spils.h
    122         rm -f $(includedir)/cvodes/cvodes_spbcgs.h
    123         rm -f $(includedir)/cvodes/cvodes_spgmr.h
    124         rm -f $(includedir)/cvodes/cvodes_sptfqmr.h
    125         rm -f $(includedir)/cvodes/cvodes_bandpre.h
    126         rm -f $(includedir)/cvodes/cvodes_bbdpre.h
    127         rm -f $(includedir)/cvodes/cvodes_impl.h
    128         $(rminstalldirs) ${includedir}/cvodes
     114        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(CVODES_LIB)
     115        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes.h
     116        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_direct.h
     117        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_dense.h
     118        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_band.h
     119        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_diag.h
     120        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_lapack.h
     121        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_spils.h
     122        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_spbcgs.h
     123        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_spgmr.h
     124        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_sptfqmr.h
     125        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_bandpre.h
     126        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_bbdpre.h
     127        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_impl.h
     128        $(rminstalldirs) $(DESTDIR)$(includedir)/cvodes
    129129
    130130shared:
    131131        @cd ${top_builddir}/src/sundials ; \
  • src/ida/Makefile.in

    diff -ur sundials-2.5.0_orig/src/ida/Makefile.in sundials-2.5.0_patched/src/ida/Makefile.in
    old new  
    9191        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(IDA_LIB) $(IDA_LIB_FILES) $(IDA_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
    9292
    9393install: $(IDA_LIB)
    94         $(mkinstalldirs) $(includedir)/ida
    95         $(mkinstalldirs) $(libdir)
    96         $(LIBTOOL) --mode=install $(INSTALL_LIB) $(IDA_LIB) $(libdir)
    97         $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida.h         $(includedir)/ida/
    98         $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_direct.h  $(includedir)/ida/
    99         $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_dense.h   $(includedir)/ida/
    100         $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_band.h    $(includedir)/ida/
    101         $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spbcgs.h  $(includedir)/ida/
    102         $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spgmr.h   $(includedir)/ida/
    103         $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_sptfqmr.h $(includedir)/ida/
    104         $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_bbdpre.h  $(includedir)/ida/
    105         $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spils.h   $(includedir)/ida/
    106         $(INSTALL_HEADER) $(top_srcdir)/src/ida/ida_impl.h        $(includedir)/ida/
     94        $(mkinstalldirs) $(DESTDIR)$(includedir)/ida
     95        $(mkinstalldirs) $(DESTDIR)$(libdir)
     96        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(IDA_LIB) $(DESTDIR)$(libdir)
     97        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida.h         $(DESTDIR)$(includedir)/ida/
     98        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_direct.h  $(DESTDIR)$(includedir)/ida/
     99        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_dense.h   $(DESTDIR)$(includedir)/ida/
     100        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_band.h    $(DESTDIR)$(includedir)/ida/
     101        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spbcgs.h  $(DESTDIR)$(includedir)/ida/
     102        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spgmr.h   $(DESTDIR)$(includedir)/ida/
     103        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_sptfqmr.h $(DESTDIR)$(includedir)/ida/
     104        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_bbdpre.h  $(DESTDIR)$(includedir)/ida/
     105        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spils.h   $(DESTDIR)$(includedir)/ida/
     106        $(INSTALL_HEADER) $(top_srcdir)/src/ida/ida_impl.h        $(DESTDIR)$(includedir)/ida/
    107107        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    108           $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_lapack.h  $(includedir)/ida/ ; \
     108          $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_lapack.h  $(DESTDIR)$(includedir)/ida/ ; \
    109109        fi
    110110
    111111uninstall:
    112         $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(IDA_LIB)
    113         rm -f $(includedir)/ida/ida.h
    114         rm -f $(includedir)/ida/ida_direct.h
    115         rm -f $(includedir)/ida/ida_dense.h
    116         rm -f $(includedir)/ida/ida_band.h
    117         rm -f $(includedir)/ida/ida_lapack.h
    118         rm -f $(includedir)/ida/ida_spbcgs.h
    119         rm -f $(includedir)/ida/ida_spgmr.h
    120         rm -f $(includedir)/ida/ida_sptfqmr.h
    121         rm -f $(includedir)/ida/ida_bbdpre.h
    122         rm -f $(includedir)/ida/ida_spils.h
    123         rm -f $(includedir)/ida/ida_impl.h
    124         $(rminstalldirs) ${includedir}/ida
     112        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(IDA_LIB)
     113        rm -f $(DESTDIR)$(includedir)/ida/ida.h
     114        rm -f $(DESTDIR)$(includedir)/ida/ida_direct.h
     115        rm -f $(DESTDIR)$(includedir)/ida/ida_dense.h
     116        rm -f $(DESTDIR)$(includedir)/ida/ida_band.h
     117        rm -f $(DESTDIR)$(includedir)/ida/ida_lapack.h
     118        rm -f $(DESTDIR)$(includedir)/ida/ida_spbcgs.h
     119        rm -f $(DESTDIR)$(includedir)/ida/ida_spgmr.h
     120        rm -f $(DESTDIR)$(includedir)/ida/ida_sptfqmr.h
     121        rm -f $(DESTDIR)$(includedir)/ida/ida_bbdpre.h
     122        rm -f $(DESTDIR)$(includedir)/ida/ida_spils.h
     123        rm -f $(DESTDIR)$(includedir)/ida/ida_impl.h
     124        $(rminstalldirs) $(DESTDIR)$(includedir)/ida
    125125
    126126shared:
    127127        @cd ${top_builddir}/src/sundials ; \
  • src/ida/fcmix/Makefile.in

    diff -ur sundials-2.5.0_orig/src/ida/fcmix/Makefile.in sundials-2.5.0_patched/src/ida/fcmix/Makefile.in
    old new  
    7878        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(FIDA_LIB) $(FIDA_LIB_FILES) $(FIDA_BL_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -static -version-info $(LIB_REVISION)
    7979
    8080install: $(FIDA_LIB)
    81         $(mkinstalldirs) $(libdir)
    82         $(LIBTOOL) --mode=install $(INSTALL_LIB) $(FIDA_LIB) $(libdir)
     81        $(mkinstalldirs) $(DESTDIR)$(libdir)
     82        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(FIDA_LIB) $(DESTDIR)$(libdir)
    8383
    8484uninstall:
    85         $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(FIDA_LIB)
     85        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(FIDA_LIB)
    8686
    8787clean:
    8888        $(LIBTOOL) --mode=clean rm -f $(FIDA_LIB)
  • src/idas/Makefile.in

    diff -ur sundials-2.5.0_orig/src/idas/Makefile.in sundials-2.5.0_patched/src/idas/Makefile.in
    old new  
    9191        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(IDAS_LIB) $(IDAS_LIB_FILES) $(IDAS_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
    9292
    9393install: $(IDAS_LIB)
    94         $(mkinstalldirs) $(includedir)/idas
    95         $(mkinstalldirs) $(libdir)
    96         $(LIBTOOL) --mode=install $(INSTALL_LIB) $(IDAS_LIB) $(libdir)
    97         $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas.h         $(includedir)/idas/
    98         $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_direct.h  $(includedir)/idas/
    99         $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_dense.h   $(includedir)/idas/
    100         $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_band.h    $(includedir)/idas/
    101         $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spbcgs.h  $(includedir)/idas/
    102         $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spgmr.h   $(includedir)/idas/
    103         $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_sptfqmr.h $(includedir)/idas/
    104         $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_bbdpre.h  $(includedir)/idas/
    105         $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spils.h   $(includedir)/idas/
    106         $(INSTALL_HEADER) $(top_srcdir)/src/idas/idas_impl.h        $(includedir)/idas/
     94        $(mkinstalldirs) $(DESTDIR)$(includedir)/idas
     95        $(mkinstalldirs) $(DESTDIR)$(libdir)
     96        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(IDAS_LIB) $(DESTDIR)$(libdir)
     97        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas.h         $(DESTDIR)$(includedir)/idas/
     98        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_direct.h  $(DESTDIR)$(includedir)/idas/
     99        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_dense.h   $(DESTDIR)$(includedir)/idas/
     100        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_band.h    $(DESTDIR)$(includedir)/idas/
     101        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spbcgs.h  $(DESTDIR)$(includedir)/idas/
     102        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spgmr.h   $(DESTDIR)$(includedir)/idas/
     103        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_sptfqmr.h $(DESTDIR)$(includedir)/idas/
     104        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_bbdpre.h  $(DESTDIR)$(includedir)/idas/
     105        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spils.h   $(DESTDIR)$(includedir)/idas/
     106        $(INSTALL_HEADER) $(top_srcdir)/src/idas/idas_impl.h        $(DESTDIR)$(includedir)/idas/
    107107        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    108           $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_lapack.h  $(includedir)/idas/ ; \
     108          $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_lapack.h  $(DESTDIR)$(includedir)/idas/ ; \
    109109        fi
    110110
    111111uninstall:
    112         $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(IDAS_LIB)
    113         rm -f $(includedir)/idas/idas.h
    114         rm -f $(includedir)/idas/idas_direct.h
    115         rm -f $(includedir)/idas/idas_dense.h
    116         rm -f $(includedir)/idas/idas_band.h
    117         rm -f $(includedir)/idas/idas_lapack.h
    118         rm -f $(includedir)/idas/idas_spbcgs.h
    119         rm -f $(includedir)/idas/idas_spgmr.h
    120         rm -f $(includedir)/idas/idas_sptfqmr.h
    121         rm -f $(includedir)/idas/idas_bbdpre.h
    122         rm -f $(includedir)/idas/idas_spils.h
    123         rm -f $(includedir)/idas/idas_impl.h
    124         $(rminstalldirs) ${includedir}/idas
     112        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(IDAS_LIB)
     113        rm -f $(DESTDIR)$(includedir)/idas/idas.h
     114        rm -f $(DESTDIR)$(includedir)/idas/idas_direct.h
     115        rm -f $(DESTDIR)$(includedir)/idas/idas_dense.h
     116        rm -f $(DESTDIR)$(includedir)/idas/idas_band.h
     117        rm -f $(DESTDIR)$(includedir)/idas/idas_lapack.h
     118        rm -f $(DESTDIR)$(includedir)/idas/idas_spbcgs.h
     119        rm -f $(DESTDIR)$(includedir)/idas/idas_spgmr.h
     120        rm -f $(DESTDIR)$(includedir)/idas/idas_sptfqmr.h
     121        rm -f $(DESTDIR)$(includedir)/idas/idas_bbdpre.h
     122        rm -f $(DESTDIR)$(includedir)/idas/idas_spils.h
     123        rm -f $(DESTDIR)$(includedir)/idas/idas_impl.h
     124        $(rminstalldirs) $(DESTDIR)$(includedir)/idas
    125125
    126126shared:
    127127        @cd ${top_builddir}/src/sundials ; \
  • src/kinsol/Makefile.in

    diff -ur sundials-2.5.0_orig/src/kinsol/Makefile.in sundials-2.5.0_patched/src/kinsol/Makefile.in
    old new  
    9191        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(KINSOL_LIB) $(KINSOL_LIB_FILES) $(KINSOL_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)
    9292
    9393install: $(KINSOL_LIB)
    94         $(mkinstalldirs) $(includedir)/kinsol
    95         $(mkinstalldirs) $(libdir)
    96         $(LIBTOOL) --mode=install $(INSTALL_LIB) $(KINSOL_LIB) $(libdir)
    97         $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol.h         $(includedir)/kinsol/
    98         $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_direct.h  $(includedir)/kinsol/
    99         $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_dense.h   $(includedir)/kinsol/
    100         $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_band.h    $(includedir)/kinsol/
    101         $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spgmr.h   $(includedir)/kinsol/
    102         $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spbcgs.h  $(includedir)/kinsol/
    103         $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_sptfqmr.h $(includedir)/kinsol/
    104         $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_bbdpre.h  $(includedir)/kinsol/
    105         $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spils.h   $(includedir)/kinsol/
    106         $(INSTALL_HEADER) $(top_srcdir)/src/kinsol/kinsol_impl.h        $(includedir)/kinsol/
     94        $(mkinstalldirs) $(DESTDIR)$(includedir)/kinsol
     95        $(mkinstalldirs) $(DESTDIR)$(libdir)
     96        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(KINSOL_LIB) $(DESTDIR)$(libdir)
     97        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol.h         $(DESTDIR)$(includedir)/kinsol/
     98        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_direct.h  $(DESTDIR)$(includedir)/kinsol/
     99        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_dense.h   $(DESTDIR)$(includedir)/kinsol/
     100        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_band.h    $(DESTDIR)$(includedir)/kinsol/
     101        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spgmr.h   $(DESTDIR)$(includedir)/kinsol/
     102        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spbcgs.h  $(DESTDIR)$(includedir)/kinsol/
     103        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_sptfqmr.h $(DESTDIR)$(includedir)/kinsol/
     104        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_bbdpre.h  $(DESTDIR)$(includedir)/kinsol/
     105        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spils.h   $(DESTDIR)$(includedir)/kinsol/
     106        $(INSTALL_HEADER) $(top_srcdir)/src/kinsol/kinsol_impl.h        $(DESTDIR)$(includedir)/kinsol/
    107107        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    108           $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_lapack.h  $(includedir)/kinsol/ ; \
     108          $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_lapack.h  $(DESTDIR)$(includedir)/kinsol/ ; \
    109109        fi
    110110
    111111uninstall:
    112         $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(KINSOL_LIB)
    113         rm -f $(includedir)/kinsol/kinsol.h
    114         rm -f $(includedir)/kinsol/kinsol_direct.h
    115         rm -f $(includedir)/kinsol/kinsol_dense.h
    116         rm -f $(includedir)/kinsol/kinsol_band.h
    117         rm -f $(includedir)/kinsol/kinsol_lapack.h
    118         rm -f $(includedir)/kinsol/kinsol_spgmr.h
    119         rm -f $(includedir)/kinsol/kinsol_spbcgs.h
    120         rm -f $(includedir)/kinsol/kinsol_sptfqmr.h
    121         rm -f $(includedir)/kinsol/kinsol_bbdpre.h
    122         rm -f $(includedir)/kinsol/kinsol_spils.h
    123         rm -f $(includedir)/kinsol/kinsol_impl.h
    124         $(rminstalldirs) ${includedir}/kinsol
     112        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(KINSOL_LIB)
     113        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol.h
     114        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_direct.h
     115        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_dense.h
     116        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_band.h
     117        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_lapack.h
     118        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_spgmr.h
     119        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_spbcgs.h
     120        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_sptfqmr.h
     121        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_bbdpre.h
     122        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_spils.h
     123        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_impl.h
     124        $(rminstalldirs) $(DESTDIR)$(includedir)/kinsol
    125125
    126126shared:
    127127        @cd ${top_builddir}/src/sundials ; \
  • src/kinsol/fcmix/Makefile.in

    diff -ur sundials-2.5.0_orig/src/kinsol/fcmix/Makefile.in sundials-2.5.0_patched/src/kinsol/fcmix/Makefile.in
    old new  
    7878        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(FKINSOL_LIB) $(FKINSOL_LIB_FILES) $(FKINSOL_BL_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -static -version-info $(LIB_REVISION)
    7979
    8080install: $(FKINSOL_LIB)
    81         $(mkinstalldirs) $(libdir)
    82         $(LIBTOOL) --mode=install $(INSTALL_LIB) $(FKINSOL_LIB) $(libdir)
     81        $(mkinstalldirs) $(DESTDIR)$(libdir)
     82        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(FKINSOL_LIB) $(DESTDIR)$(libdir)
    8383
    8484uninstall:
    85         $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(FKINSOL_LIB)
     85        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(FKINSOL_LIB)
    8686
    8787clean:
    8888        $(LIBTOOL) --mode=clean rm -f $(FKINSOL_LIB)
  • src/nvec_par/Makefile.in

    diff -ur sundials-2.5.0_orig/src/nvec_par/Makefile.in sundials-2.5.0_patched/src/nvec_par/Makefile.in
    old new  
    7575         fi
    7676
    7777install: $(NVECPAR_LIB) $(FNVECPAR_LIB)
    78         $(mkinstalldirs) $(includedir)/nvector
    79         $(mkinstalldirs) $(libdir)
    80         $(LIBTOOL) --mode=install $(INSTALL_LIB) $(NVECPAR_LIB) $(libdir)
    81         $(INSTALL_HEADER) $(top_srcdir)/include/nvector/nvector_parallel.h $(includedir)/nvector/
     78        $(mkinstalldirs) $(DESTDIR)$(includedir)/nvector
     79        $(mkinstalldirs) $(DESTDIR)$(libdir)
     80        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(NVECPAR_LIB) $(DESTDIR)$(libdir)
     81        $(INSTALL_HEADER) $(top_srcdir)/include/nvector/nvector_parallel.h $(DESTDIR)$(includedir)/nvector/
    8282        @if test "X${FCMIX_ENABLED}" = "Xyes"; then                                    \
    83            echo "${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECPAR_LIB} ${libdir}" ; \
    84            ${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECPAR_LIB} ${libdir} ;        \
     83           echo "${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECPAR_LIB} ${DESTDIR}${libdir}" ; \
     84           ${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECPAR_LIB} ${DESTDIR}${libdir} ;        \
    8585         fi
    8686
    8787uninstall:
    88         $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(NVECPAR_LIB)
     88        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(NVECPAR_LIB)
    8989        @if test "X${FCMIX_ENABLED}" = "Xyes"; then                             \
    90            echo "${LIBTOOL} --mode=uninstall rm -f ${libdir}/${FNVECPAR_LIB}" ; \
    91            ${LIBTOOL} --mode=uninstall rm -f ${libdir}/${FNVECPAR_LIB} ;        \
     90           echo "${LIBTOOL} --mode=uninstall rm -f ${DESTDIR}${libdir}/${FNVECPAR_LIB}" ; \
     91           ${LIBTOOL} --mode=uninstall rm -f ${DESTDIR}${libdir}/${FNVECPAR_LIB} ;        \
    9292         fi
    93         rm -f $(includedir)/nvector/nvector_parallel.h
    94         $(rminstalldirs) ${includedir}/nvector
     93        rm -f $(DESTDIR)$(includedir)/nvector/nvector_parallel.h
     94        $(rminstalldirs) $(DESTDIR)$(includedir)/nvector
    9595
    9696shared:
    9797        @cd ${top_builddir}/src/sundials ; \
  • src/nvec_ser/Makefile.in

    diff -ur sundials-2.5.0_orig/src/nvec_ser/Makefile.in sundials-2.5.0_patched/src/nvec_ser/Makefile.in
    old new  
    7272        fi
    7373
    7474install: $(NVECSER_LIB) $(FNVECSER_LIB)
    75         $(mkinstalldirs) $(includedir)/nvector
    76         $(mkinstalldirs) $(libdir)
    77         $(LIBTOOL) --mode=install $(INSTALL_LIB) $(NVECSER_LIB) $(libdir)
    78         $(INSTALL_HEADER) $(top_srcdir)/include/nvector/nvector_serial.h $(includedir)/nvector/
     75        $(mkinstalldirs) $(DESTDIR)$(includedir)/nvector
     76        $(mkinstalldirs) $(DESTDIR)$(libdir)
     77        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(NVECSER_LIB) $(DESTDIR)$(libdir)
     78        $(INSTALL_HEADER) $(top_srcdir)/include/nvector/nvector_serial.h $(DESTDIR)$(includedir)/nvector/
    7979        @if test "X${FCMIX_ENABLED}" = "Xyes"; then                                    \
    80            echo "${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECSER_LIB} ${libdir}" ; \
    81            ${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECSER_LIB} ${libdir} ;        \
     80           echo "${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECSER_LIB} ${DESTDIR}${libdir}" ; \
     81           ${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECSER_LIB} ${DESTDIR}${libdir} ;        \
    8282         fi
    8383
    8484uninstall:
    85         $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(NVECSER_LIB)
     85        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(NVECSER_LIB)
    8686        @if test "X${FCMIX_ENABLED}" = "Xyes"; then                             \
    87            echo "${LIBTOOL} --mode=uninstall rm -f ${libdir}/${FNVECSER_LIB}" ; \
    88            ${LIBTOOL} --mode=uninstall rm -f ${libdir}/${FNVECSER_LIB} ;        \
     87           echo "${LIBTOOL} --mode=uninstall rm -f ${DESTDIR}${libdir}/${FNVECSER_LIB}" ; \
     88           ${LIBTOOL} --mode=uninstall rm -f ${DESTDIR}${libdir}/${FNVECSER_LIB} ;        \
    8989         fi
    90         rm -f $(includedir)/nvector/nvector_serial.h
    91         $(rminstalldirs) ${includedir}/nvector
     90        rm -f $(DESTDIR)$(includedir)/nvector/nvector_serial.h
     91        $(rminstalldirs) $(DESTDIR)$(includedir)/nvector
    9292
    9393shared:
    9494        @cd ${top_builddir}/src/sundials ; \
  • src/sundials/Makefile.in

    diff -ur sundials-2.5.0_orig/src/sundials/Makefile.in sundials-2.5.0_patched/src/sundials/Makefile.in
    old new  
    7070lib_with_bl: $(SHARED_LIB_FILES)
    7171
    7272install:
    73         $(mkinstalldirs)  $(includedir)/sundials
    74         $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_direct.h     $(includedir)/sundials/
    75         $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_band.h       $(includedir)/sundials/
    76         $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_dense.h      $(includedir)/sundials/
    77         $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_iterative.h  $(includedir)/sundials/
    78         $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_spgmr.h      $(includedir)/sundials/
    79         $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_spbcgs.h     $(includedir)/sundials/
    80         $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_sptfqmr.h    $(includedir)/sundials/
    81         $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_math.h       $(includedir)/sundials/
    82         $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_types.h      $(includedir)/sundials/
    83         $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_nvector.h    $(includedir)/sundials/
    84         $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_fnvector.h   $(includedir)/sundials/
    85         $(INSTALL_HEADER) $(top_builddir)/include/sundials/sundials_config.h   $(includedir)/sundials/
     73        $(mkinstalldirs)  $(DESTDIR)$(includedir)/sundials
     74        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_direct.h     $(DESTDIR)$(includedir)/sundials/
     75        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_band.h       $(DESTDIR)$(includedir)/sundials/
     76        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_dense.h      $(DESTDIR)$(includedir)/sundials/
     77        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_iterative.h  $(DESTDIR)$(includedir)/sundials/
     78        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_spgmr.h      $(DESTDIR)$(includedir)/sundials/
     79        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_spbcgs.h     $(DESTDIR)$(includedir)/sundials/
     80        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_sptfqmr.h    $(DESTDIR)$(includedir)/sundials/
     81        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_math.h       $(DESTDIR)$(includedir)/sundials/
     82        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_types.h      $(DESTDIR)$(includedir)/sundials/
     83        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_nvector.h    $(DESTDIR)$(includedir)/sundials/
     84        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_fnvector.h   $(DESTDIR)$(includedir)/sundials/
     85        $(INSTALL_HEADER) $(top_builddir)/include/sundials/sundials_config.h   $(DESTDIR)$(includedir)/sundials/
    8686        @if test "X${LAPACK_ENABLED}" = "Xyes"; then \
    87           $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_lapack.h     $(includedir)/sundials/ ; \
     87          $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_lapack.h     $(DESTDIR)$(includedir)/sundials/ ; \
    8888        fi
    8989
    9090uninstall:
    91         rm -f $(includedir)/sundials/sundials_direct.h
    92         rm -f $(includedir)/sundials/sundials_band.h
    93         rm -f $(includedir)/sundials/sundials_dense.h
    94         rm -f $(includedir)/sundials/sundials_lapack.h
    95         rm -f $(includedir)/sundials/sundials_iterative.h
    96         rm -f $(includedir)/sundials/sundials_spgmr.h
    97         rm -f $(includedir)/sundials/sundials_spbcgs.h
    98         rm -f $(includedir)/sundials/sundials_sptfqmr.h
    99         rm -f $(includedir)/sundials/sundials_math.h
    100         rm -f $(includedir)/sundials/sundials_types.h
    101         rm -f $(includedir)/sundials/sundials_nvector.h
    102         rm -f $(includedir)/sundials/sundials_fnvector.h
    103         rm -f $(includedir)/sundials/sundials_config.h
    104         $(rminstalldirs) $(includedir)/sundials
     91        rm -f $(DESTDIR)$(includedir)/sundials/sundials_direct.h
     92        rm -f $(DESTDIR)$(includedir)/sundials/sundials_band.h
     93        rm -f $(DESTDIR)$(includedir)/sundials/sundials_dense.h
     94        rm -f $(DESTDIR)$(includedir)/sundials/sundials_lapack.h
     95        rm -f $(DESTDIR)$(includedir)/sundials/sundials_iterative.h
     96        rm -f $(DESTDIR)$(includedir)/sundials/sundials_spgmr.h
     97        rm -f $(DESTDIR)$(includedir)/sundials/sundials_spbcgs.h
     98        rm -f $(DESTDIR)$(includedir)/sundials/sundials_sptfqmr.h
     99        rm -f $(DESTDIR)$(includedir)/sundials/sundials_math.h
     100        rm -f $(DESTDIR)$(includedir)/sundials/sundials_types.h
     101        rm -f $(DESTDIR)$(includedir)/sundials/sundials_nvector.h
     102        rm -f $(DESTDIR)$(includedir)/sundials/sundials_fnvector.h
     103        rm -f $(DESTDIR)$(includedir)/sundials/sundials_config.h
     104        $(rminstalldirs) $(DESTDIR)$(includedir)/sundials
    105105
    106106clean:
    107107        rm -f $(SHARED_LIB_FILES)