OK I think this does what everyone wants with the .headers.stamp
authorHerb Lewis <herb@samba.org>
Fri, 7 Dec 2001 00:37:31 +0000 (00:37 +0000)
committerHerb Lewis <herb@samba.org>
Fri, 7 Dec 2001 00:37:31 +0000 (00:37 +0000)
it gets removed on a make clean
it gets created on a make headers (if it doesn't already exist)

This makes it so I only rebuild everthing once after a make clean and
also so nothing gets rebuilt after jfm does a make headers (proto)
(This used to be commit bc918bce104954b39bd54cab3149a0f4573feb5f)

source3/Makefile.in

index 362965a312a20414979e5194c366d14a1e1f0a70..6d9bd9c54cb11a00d278207d44107b94c5fd0845 100644 (file)
@@ -783,7 +783,7 @@ uninstallscripts:
        @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS)
 
 clean: delheaders
-       -rm -f core */*~ *~ */*.o */*.po */*.po32 */*.@SHLIBEXT@ $(PROGS) $(SPROGS) 
+       -rm -f core */*~ *~ */*.o */*.po */*.po32 */*.@SHLIBEXT@ $(PROGS) $(SPROGS) .headers.stamp 
 
 winbindd_proto:
        @cd $(srcdir) && $(SHELL) script/mkproto.sh $(AWK) \
@@ -795,7 +795,7 @@ delheaders:
        @/bin/rm -f include/proto.h include/build_env.h
 
 # we want our generated headers to be rebuilt if they don't exist, but not rebuilt every time
-.headers.stamp: include/proto.h include/build_env.h
+.headers.stamp:
        @[ -f $@ ] || touch $@
 
 $(PROTO_OBJ) : .headers.stamp
@@ -808,7 +808,7 @@ include/build_env.h:
        @echo rebuilding include/build_env.h
        @cd $(srcdir) && $(SHELL) script/build_env.sh $(srcdir) $(builddir) $(CC) > $(builddir)/include/build_env.h
 
-headers: delheaders include/proto.h include/build_env.h
+headers: delheaders include/proto.h include/build_env.h .headers.stamp
 
 proto: headers winbindd_proto