# HG changeset patch # User Bernhard Walle <bwalle@xxxxxxx> # Date 1217945084 -7200 # Node ID 438f09cc758d5b7a7c947829dd1d5fcee974c031 # Parent ee56d7b2ab28d8d2b6f739d14947c91a4020c244 Use 'install' to install files This patch uses 'install' command to install files, and fixes permission of the resulting files. Signed-off-by: Bernhard Walle <bwalle@xxxxxxx> --- Makefile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff -r ee56d7b2ab28 -r 438f09cc758d Makefile --- a/Makefile Tue Aug 05 16:01:51 2008 +0200 +++ b/Makefile Tue Aug 05 16:04:44 2008 +0200 @@ -125,26 +125,26 @@ install: numactl migratepages migspeed numademo.c numamon memhog libnuma.so.1 numa.h numaif.h numacompat1.h numastat ${MANPAGES} mkdir -p ${prefix}/bin - cp numactl ${prefix}/bin - cp migratepages ${prefix}/bin - cp migspeed ${prefix}/bin - cp numademo ${prefix}/bin - cp memhog ${prefix}/bin + install -m 0755 numactl ${prefix}/bin + install -m 0755 migratepages ${prefix}/bin + install -m 0755 migspeed ${prefix}/bin + install -m 0755 numademo ${prefix}/bin + install -m 0755 memhog ${prefix}/bin mkdir -p ${prefix}/share/man/man2 ${prefix}/share/man/man8 ${prefix}/share/man/man3 - cp numactl.8 ${prefix}/share/man/man8 - cp numa.3 ${prefix}/share/man/man3 + install -m 0644 numactl.8 ${prefix}/share/man/man8 + install -m 0644 numa.3 ${prefix}/share/man/man3 ( cd ${prefix}/share/man/man3 ; for i in $$(./manlinks) ; do ln -sf numa.3 $$i.3 ; done ) - cp numa_maps.5 ${prefix}/share/man/man5 + install -m 0644 numa_maps.5 ${prefix}/share/man/man5 mkdir -p ${libdir} - cp libnuma.so.1 ${libdir} + install -m 0755 libnuma.so.1 ${libdir} cd ${libdir} ; ln -sf libnuma.so.1 libnuma.so - cp libnuma.a ${libdir} + install -m 0644 libnuma.a ${libdir} mkdir -p ${prefix}/include - cp numa.h numaif.h numacompat1.h ${prefix}/include - cp numastat ${prefix}/bin + install -m 0644 numa.h numaif.h numacompat1.h ${prefix}/include + install -m 0755 numastat ${prefix}/bin if [ -d ${docdir} ] ; then \ mkdir -p ${docdir}/numactl/examples ; \ - cp numademo.c ${docdir}/numactl/examples ; \ + install -m 0644 numademo.c ${docdir}/numactl/examples ; \ fi HTML := html/numactl.html html/numa.html -- To unsubscribe from this list: send the line "unsubscribe linux-numa" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html