MANLINKS was already out of date with version 2 functions. Auto generate it instead based on numa.3 with some sed magic. --- Makefile | 11 +---------- manlinks | 5 +++++ 2 files changed, 6 insertions(+), 10 deletions(-) Index: numactl-2.0.0/Makefile =================================================================== --- numactl-2.0.0.orig/Makefile +++ numactl-2.0.0/Makefile @@ -112,15 +112,6 @@ test/migrate_pages: test/migrate_pages.c .PHONY: install all clean html depend -MANLINKS := \ -all_nodes alloc alloc_interleaved alloc_interleaved_subset alloc_local \ -alloc_onnode available bind error exit_on_error free get_interleave_mask \ -get_interleave_node get_membind get_run_node_mask interleave_memory max_node \ -no_nodes node_size node_to_cpus police_memory preferred run_on_node \ -run_on_node_mask set_bind_policy set_interleave_mask set_localalloc \ -set_membind set_preferred set_strict setlocal_memory tonode_memory \ -tonodemask_memory distance - MANPAGES := numa.3 numactl.8 numastat.8 migratepages.8 migspeed.8 install: numactl migratepages migspeed numademo.c numamon memhog libnuma.so.1 numa.h numaif.h numacompat1.h numastat ${MANPAGES} @@ -133,7 +124,7 @@ install: numactl migratepages migspeed n 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 - ( cd ${prefix}/share/man/man3 ; for i in ${MANLINKS} ; do ln -sf numa.3 numa_$$i.3 ; done ) + ( 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 mkdir -p ${libdir} cp libnuma.so.1 ${libdir} Index: numactl-2.0.0/manlinks =================================================================== --- /dev/null +++ numactl-2.0.0/manlinks @@ -0,0 +1,5 @@ +#!/bin/sh +# print names of all functions listed in numa.3 +# no globals + +grep '^\.BI.*numa.*(' numa.3 | sed -e 's/.*\(numa_.*\)(.*/\1/' -- 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