Skip to content

Commit 71dacb8

Browse files
committed
remove DESTDIR from echo of make install
1 parent a23e9c8 commit 71dacb8

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

Makefile.am

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,44 +69,48 @@ check-local:
6969
# work on platforms that have drive letters. On the other hand, it does better
7070
# at avoiding recompilation issues, and works well even when some directory
7171
# 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.
7276
install-data-hook:
7377
@echo '+----------------------------------------------------------------------------+'
7478
@echo '|'
7579
@echo '| PnetCDF has been successfully installed under'
76-
@echo '| $(DESTDIR)$(prefix)'
80+
@echo '| $(prefix)'
7781
@echo '|'
7882
@echo '| * PnetCDF header files have been installed in'
79-
@echo '| $(DESTDIR)$(prefix)/include'
83+
@echo '| $(prefix)/include'
8084
@echo '| * PnetCDF library files have been installed in'
81-
@echo '| $(DESTDIR)$(exec_prefix)/lib'
85+
@echo '| $(exec_prefix)/lib'
8286
@echo '| * PnetCDF utility programs have been installed in'
83-
@echo '| $(DESTDIR)$(exec_prefix)/bin'
87+
@echo '| $(exec_prefix)/bin'
8488
@echo '| * PnetCDF man pages have been installed in'
85-
@echo '| $(DESTDIR)$(prefix)/share/man'
89+
@echo '| $(prefix)/share/man'
8690
@echo '|'
8791
@echo '| To compile your PnetCDF programs, please add the following to the command'
8892
@echo '| line, so the compiler can find the PnetCDF header files:'
89-
@echo '| -I$(DESTDIR)$(prefix)/include'
93+
@echo '| -I$(prefix)/include'
9094
@echo '|'
9195
@if test "x$(has_fortran)" = xyes -a 'x$(FC_MODINC)' != 'x-I' ; then \
9296
echo '| Add the following line to compile your Fortran programs' ; \
93-
echo '| $(FC_MODINC)$(DESTDIR)$(prefix)/include' ; \
97+
echo '| $(FC_MODINC)$(prefix)/include' ; \
9498
echo '|' ; \
9599
fi
96100
@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'
98102
@echo '|'
99103
@if test "x$(enable_shared)" = xyes ; then \
100104
echo '| Add the following to your run-time environment variable LD_LIBRARY_PATH,' ; \
101105
echo '| when linking your executable with the PnetCDF shared libraries.' ; \
102106
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)' ; \
104108
elif test "x$(enable_netcdf4)" = xyes ; then \
105-
echo '| $(DESTDIR)$(exec_prefix)/lib:$(netcdf4_libdir)' ; \
109+
echo '| $(exec_prefix)/lib:$(netcdf4_libdir)' ; \
106110
elif test "x$(enable_adios)" = xyes ; then \
107-
echo '| $(DESTDIR)$(exec_prefix)/lib:$(adios_libdir)' ; \
111+
echo '| $(exec_prefix)/lib:$(adios_libdir)' ; \
108112
else \
109-
echo '| $(DESTDIR)$(exec_prefix)/lib' ; \
113+
echo '| $(exec_prefix)/lib' ; \
110114
fi ; \
111115
echo '|' ; \
112116
fi

0 commit comments

Comments
 (0)