@@ -69,44 +69,48 @@ check-local:
69
69
# work on platforms that have drive letters. On the other hand, it does better
70
70
# at avoiding recompilation issues, and works well even when some directory
71
71
# options were not specified in terms of '${prefix}' at configure time."
72
+ # Note command "make install prefix=/path/of/install DESTDIR=/path/to/dest"
73
+ # does not install the library. It copies all install files into folder
74
+ # "$DESTDIR/$prefix", so one can cd to $DESTDIR and pack the folder $prefix
75
+ # there into a tar ball.
72
76
install-data-hook :
73
77
@echo ' +----------------------------------------------------------------------------+'
74
78
@echo ' |'
75
79
@echo ' | PnetCDF has been successfully installed under'
76
- @echo ' | $(DESTDIR)$( prefix)'
80
+ @echo ' | $(prefix)'
77
81
@echo ' |'
78
82
@echo ' | * PnetCDF header files have been installed in'
79
- @echo ' | $(DESTDIR)$( prefix)/include'
83
+ @echo ' | $(prefix)/include'
80
84
@echo ' | * PnetCDF library files have been installed in'
81
- @echo ' | $(DESTDIR)$( exec_prefix)/lib'
85
+ @echo ' | $(exec_prefix)/lib'
82
86
@echo ' | * PnetCDF utility programs have been installed in'
83
- @echo ' | $(DESTDIR)$( exec_prefix)/bin'
87
+ @echo ' | $(exec_prefix)/bin'
84
88
@echo ' | * PnetCDF man pages have been installed in'
85
- @echo ' | $(DESTDIR)$( prefix)/share/man'
89
+ @echo ' | $(prefix)/share/man'
86
90
@echo ' |'
87
91
@echo ' | To compile your PnetCDF programs, please add the following to the command'
88
92
@echo ' | line, so the compiler can find the PnetCDF header files:'
89
- @echo ' | -I$(DESTDIR)$( prefix)/include'
93
+ @echo ' | -I$(prefix)/include'
90
94
@echo ' |'
91
95
@if test " x$( has_fortran) " = xyes -a ' x$(FC_MODINC)' ! = ' x-I' ; then \
92
96
echo ' | Add the following line to compile your Fortran programs' ; \
93
- echo ' | $(FC_MODINC)$(DESTDIR)$( prefix)/include' ; \
97
+ echo ' | $(FC_MODINC)$(prefix)/include' ; \
94
98
echo ' |' ; \
95
99
fi
96
100
@echo ' | Add the following line to link your program to PnetCDF library:'
97
- @echo ' | -L$(DESTDIR)$( exec_prefix)/lib -lpnetcdf'
101
+ @echo ' | -L$(exec_prefix)/lib -lpnetcdf'
98
102
@echo ' |'
99
103
@if test " x$( enable_shared) " = xyes ; then \
100
104
echo ' | Add the following to your run-time environment variable LD_LIBRARY_PATH,' ; \
101
105
echo ' | when linking your executable with the PnetCDF shared libraries.' ; \
102
106
if test "x$(enable_netcdf4)" = xyes -a "x$(enable_adios)" = xyes ; then \
103
- echo '| $(DESTDIR )$( exec_prefix ) /lib :$(netcdf4_libdir ) :$(adios_libdir ) ' ; \
107
+ echo '| $(exec_prefix ) /lib :$(netcdf4_libdir ) :$(adios_libdir ) ' ; \
104
108
elif test "x$(enable_netcdf4)" = xyes ; then \
105
- echo '| $(DESTDIR )$( exec_prefix ) /lib :$(netcdf4_libdir ) ' ; \
109
+ echo '| $(exec_prefix ) /lib :$(netcdf4_libdir ) ' ; \
106
110
elif test "x$(enable_adios)" = xyes ; then \
107
- echo '| $(DESTDIR )$( exec_prefix ) /lib :$(adios_libdir ) ' ; \
111
+ echo '| $(exec_prefix ) /lib :$(adios_libdir ) ' ; \
108
112
else \
109
- echo '| $(DESTDIR)$( exec_prefix)/lib' ; \
113
+ echo '| $(exec_prefix)/lib' ; \
110
114
fi ; \
111
115
echo '|' ; \
112
116
fi
0 commit comments