config: use the standard INSTALL_DATA makefile macro
authorMichael Meffie <mmeffie@sinenomine.net>
Sun, 19 Jan 2014 19:02:28 +0000 (14:02 -0500)
committerDerrick Brashear <shadow@your-file-system.com>
Wed, 29 Jan 2014 15:22:07 +0000 (07:22 -0800)
Replace the custom INST makefile macro with the standard
INSTALL_DATA macro for installing and exporting files.

Change-Id: I5d8c41d1c6d2c3ee021e0d6a5fbca8ef9178e74d
Reviewed-on: http://gerrit.openafs.org/10723
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

src/config/Makefile.in

index aefc919..75d64e3 100644 (file)
@@ -10,8 +10,6 @@ include @TOP_OBJDIR@/src/config/Makefile.config
 include @TOP_OBJDIR@/src/config/Makefile.lwp
 
 
-INST=$(RM) -f $@; $(CP) $? $@
-
 all: config mkvers \
        ${TOP_INCDIR}/afs/param.h \
        ${TOP_INCDIR}/afs/stds.h \
@@ -68,25 +66,25 @@ param.h.new: ${srcdir}/param.${SYS_NAME}.h ${AFS_PARAM_COMMON}
        fi
 
 ${DEST}/include/afs/param.h ${DESTDIR}${includedir}/afs/param.h ${TOP_INCDIR}/afs/param.h: param.h.new
-       $(INST)
+       ${INSTALL_DATA} $? $@
 
 ${DEST}/include/afs/afs_sysnames.h ${DESTDIR}${includedir}/afs/afs_sysnames.h ${TOP_INCDIR}/afs/afs_sysnames.h: ${srcdir}/afs_sysnames.h
-       $(INST)
+       ${INSTALL_DATA} $? $@
 
 ${DEST}/include/afs/stds.h ${DESTDIR}${includedir}/afs/stds.h ${TOP_INCDIR}/afs/stds.h: ${srcdir}/stds.h
-       $(INST)
+       ${INSTALL_DATA} $? $@
 
 ${DEST}/include/afs/icl.h ${DESTDIR}${includedir}/afs/icl.h ${TOP_INCDIR}/afs/icl.h: ${srcdir}/icl.h 
-       $(INST)
+       ${INSTALL_DATA} $? $@
 
 ${DEST}/include/afs/afs_args.h ${DESTDIR}${includedir}/afs/afs_args.h ${TOP_INCDIR}/afs/afs_args.h: ${srcdir}/afs_args.h 
-       $(INST)
+       ${INSTALL_DATA} $? $@
 
 ${DEST}/include/afs/venus.h ${DESTDIR}${includedir}/afs/venus.h ${TOP_INCDIR}/afs/venus.h: ${srcdir}/venus.h 
-       $(INST)
+       ${INSTALL_DATA} $? $@
 
 ${DEST}/include/afs/vioc.h ${DESTDIR}${includedir}/afs/vioc.h ${TOP_INCDIR}/afs/vioc.h: ${srcdir}/vioc.h 
-       $(INST)
+       ${INSTALL_DATA} $? $@
 
 # these are needed to compile the kernel.  Config is necessary to
 # convert the MakefileProto in libafs and the kernel links provide the