######################################################################
# now the rules...
######################################################################
-all: bin/smbd bin/smbclient bin/smbtorture bin/locktest bin/masktest bin/gentest
+all: proto_test idl_test bin/smbd bin/smbclient bin/smbtorture bin/locktest bin/masktest bin/gentest
#SHOWFLAGS proto_exists $(SBIN_PROGS) $(BIN_PROGS) $(SHLIBS) \
# $(TORTURE_PROGS) $(RPC_MODULES) @EXTRA_ALL_TARGETS@
idl:
- script/build_idl.sh
+ script/build_idl.sh FULL
+
+idl_test:
+ @script/build_idl.sh
# These dependencies are only approximately correct: we want to make
proto: headers
+proto_test:
+ @[ -f include/proto.h ] || $(MAKE) proto
+
.PHONY: headers proto
etags:
-#!/bin/bash
+#!/bin/sh
+
+FULLBUILD=$1
for f in librpc/idl/*.idl; do
- echo Processing $f
base=`basename $f .idl`
ndr=librpc/ndr/ndr_$base
- pidl.pl --output $ndr --parse --header --parser --client librpc/rpc/rpc_$base.c $f || exit 1
+ if [ x$FULLBUILD = xFULL -o "$f" -nt $ndr.c ]; then
+ echo Processing $f
+ pidl.pl --output $ndr --parse --header --parser --client librpc/rpc/rpc_$base.c $f || exit 1
+ fi
done
exit 0