Install afscp.h from srcdir, not the build dir

That header is not a generated file, and is not found in the
object directory.  make install would fail from a separate objdir
prior to this change.

Reviewed-on: http://gerrit.openafs.org/11160
Reviewed-by: D Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 7a701239d8327ae738124edb5e11f3bcbb08a76b)

Change-Id: I738adc464aa36b68403b69912253faf17cb01621
Reviewed-on: http://gerrit.openafs.org/11342
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
This commit is contained in:
Benjamin Kaduk 2014-05-21 15:58:17 -04:00 committed by Stephan Wiesand
parent e7e2cff642
commit cf4e99a3a4

View File

@ -81,13 +81,13 @@ install: all
${INSTALL} -d ${DESTDIR}${libdir}
${INSTALL} -d ${DESTDIR}${includedir}/afs
${INSTALL_DATA} libafscp.a ${DESTDIR}${libdir}/libafscp.a
${INSTALL_DATA} afscp.h ${DESTDIR}${includedir}/afs/afscp.h
${INSTALL_DATA} ${srcdir}/afscp.h ${DESTDIR}${includedir}/afs/afscp.h
dest: all
${INSTALL} -d ${DEST}/lib
${INSTALL} -d ${DEST}/include/afs
${INSTALL_DATA} libafscp.a ${DEST}/lib/libafscp.a
${INSTALL_DATA} afscp.h ${DEST}/include/afs/afscp.h
${INSTALL_DATA} ${srcdir}/afscp.h ${DEST}/include/afs/afscp.h
#
# Misc targets