s3-build: add and use IDL_PATH while building IDL files.
authorGünther Deschner <gd@samba.org>
Tue, 14 Oct 2008 13:36:31 +0000 (15:36 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 14 Oct 2008 14:29:47 +0000 (16:29 +0200)
Guenther

source3/Makefile.in
source3/script/build_idl.sh

index bd29792701ff163d03d1242383a0bf286cfa4b7d..76fc101af339d56e8939593951ce5f295a367536 100644 (file)
@@ -1198,10 +1198,10 @@ samba3-idl::
                epmapper.idl messaging.idl xattr.idl misc.idl samr.idl security.idl \
                dssetup.idl krb5pac.idl ntsvcs.idl libnetapi.idl drsuapi.idl drsblobs.idl \
                nbt.idl" \
+               IDL_PATH="librpc/idl" \
                CPP="$(CPP)" PIDL="../pidl/pidl" \
         srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(PIDL_ARGS)
 
-
 #####################################################################
 
 
index 2027fd3937b7b491bc2efdb6152a41d39d58247a..75f8612957f098c699a1b29d72a4c3837efbddf2 100755 (executable)
@@ -20,11 +20,11 @@ for f in ${IDL_FILES}; do
        ndr="librpc/gen_ndr/ndr_$basename.c"
 
        if [ -f $ndr ]; then
-               if [ "x`find librpc/idl/$f -newer $ndr -print`" = "xlibrpc/idl/$f" ]; then
-                       list="$list librpc/idl/$f"
+               if [ "x`find ${IDL_PATH}/$f -newer $ndr -print`" = "x${IDL_PATH}/$f" ]; then
+                       list="$list ${IDL_PATH}/$f"
                fi
        else 
-               list="$list librpc/idl/$f"
+               list="$list ${IDL_PATH}/$f"
        fi
 done