summaryrefslogtreecommitdiff
path: root/source3/Makefile.in
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-06 10:37:21 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-06 10:37:21 +0000
commitfc07eb5eefe30336c4feb2dfa9923f19303a85f6 (patch)
tree1991778573495e349161b11e5107cfdbc8040a16 /source3/Makefile.in
parentf9f31ba33cb6af1750e437c72c738d38a75baaea (diff)
downloadsamba-fc07eb5eefe30336c4feb2dfa9923f19303a85f6.tar.gz
samba-fc07eb5eefe30336c4feb2dfa9923f19303a85f6.tar.bz2
samba-fc07eb5eefe30336c4feb2dfa9923f19303a85f6.zip
- fixed proto.h build on systems using a parallel make
- changed DENY1 and DENY2 tests to only report errors (This used to be commit 9341e5534d0786e6ad7980e5fd1a0b35d77a2806)
Diffstat (limited to 'source3/Makefile.in')
-rw-r--r--source3/Makefile.in17
1 files changed, 12 insertions, 5 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index bb059ba1c0..51e9e213de 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -318,8 +318,9 @@ UMOUNT_OBJ = client/smbumount.o \
NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(UBIQX_OBJ) \
$(LIBSMB_OBJ) $(LIB_OBJ)
-SMBTORTURE_OBJ = torture/torture.o torture/nbio.o torture/scanner.o $(LIBSMB_OBJ) $(PARAM_OBJ) \
- $(UBIQX_OBJ) $(LIB_OBJ)
+SMBTORTURE_OBJ = torture/torture.o torture/nbio.o torture/scanner.o \
+ torture/denytest.o \
+ $(LIBSMB_OBJ) $(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
MASKTEST_OBJ = torture/masktest.o $(LIBSMB_OBJ) $(PARAM_OBJ) \
$(UBIQX_OBJ) $(LIB_OBJ)
@@ -414,7 +415,7 @@ WINBIND_NSS_PICOBJS = $(WINBIND_NSS_OBJ:.o=.po)
######################################################################
# now the rules...
######################################################################
-all : CHECK include/proto.h $(SPROGS) $(PROGS) $(SHLIBS) nsswitch
+all : CHECK $(SPROGS) $(PROGS) $(SHLIBS) nsswitch
pam_smbpass : CHECK bin/pam_smbpass.@SHLIBEXT@
@@ -458,7 +459,7 @@ MAKEDIR = || exec false; \
mkdir "$$dir" || \
exec false; fi || exec false
-.c.o:
+.c.o:
@if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
@echo Compiling $*.c
@@ -710,7 +711,13 @@ winbindd_proto:
delproto:
@/bin/rm -f $(srcdir)/include/proto.h
-include/proto.h:
+# we want proto.h to be rebuilt if it doesn't exist, but not rebuilt every time
+.proto.stamp: include/proto.h
+ @[ -f $@ ] || touch $@
+
+$(PROTO_OBJ) : .proto.stamp
+
+include/proto.h:
@echo rebuilding include/proto.h
@cd $(srcdir) && $(AWK) -f script/mkproto.awk `echo $(PROTO_OBJ) | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort -u | egrep -v 'ubiqx/|wrapped'` > include/proto.h