config: make makefile builder be a config tool also
authorDerrick Brashear <shadow@your-file-system.com>
Wed, 3 Oct 2012 03:42:35 +0000 (23:42 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Wed, 3 Oct 2012 04:36:57 +0000 (21:36 -0700)
all of our helper tools should be configured in one place,
so a cross compile can override them

Change-Id: I35044832257fa3389504f79207aa423e39d1ad4a
Reviewed-on: http://gerrit.openafs.org/8198
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

Makefile.in
src/config/Makefile.config.in

index f3c71e4..44d914a 100644 (file)
@@ -478,7 +478,7 @@ libafs: config export rfc3961 hcrypto lwp_depinstall \
        libacl_depinstall afs_depinstall dir_depinstall \
        rxstat_depinstall sys_depinstall auth_depinstall \
        rxosdsrc
-       src/config/config src/libafs/MakefileProto.${MKAFS_OSTYPE} src/libafs/Makefile ${SYS_NAME}
+       ${CONFIGTOOL} src/libafs/MakefileProto.${MKAFS_OSTYPE} src/libafs/Makefile ${SYS_NAME}
        +${COMPILE_PART1} libafs ${COMPILE_PART2}
 
 libafs_tree: export lwp_depinstall rx_depinstall vlserver_depinstall tvlserver_depinstall rxkad_depinstall fsint_depinstall \
@@ -495,7 +495,7 @@ libafs_tree: export lwp_depinstall rx_depinstall vlserver_depinstall tvlserver_d
 #
 
 libuafs_setup: config export
-       src/config/config src/libuafs/MakefileProto.${MKAFS_OSTYPE} src/libuafs/Makefile ${SYS_NAME}
+       ${CONFIGTOOL} src/libuafs/MakefileProto.${MKAFS_OSTYPE} src/libuafs/Makefile ${SYS_NAME}
 
 libuafs: libuafs_setup vlserver_depinstall tvlserver_depinstall rx_depinstall fsint_depinstall \
                auth_depinstall dir_depinstall libacl_depinstall rxkad_depinstall \
index 9bc0a14..75b6327 100644 (file)
@@ -145,6 +145,7 @@ KERNELDIR = ../libafs
 # Build helper apps
 #
 COMPILE_ET = ${TOP_OBJDIR}/src/comerr/compile_et
+CONFIGTOOL = ${TOP_OBJDIR}/src/config/config
 RXGEN = ${TOP_OBJDIR}/src/rxgen/rxgen
 SHELL = @SHELL@
 LWPTOOL = ${TOP_SRCDIR}/config/lwptool