r627: remove the precompiled header when we call make clean or make proto
authorStefan Metzmacher <metze@samba.org>
Mon, 10 May 2004 12:38:08 +0000 (12:38 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:51:56 +0000 (12:51 -0500)
metze

source/Makefile.in

index 48f14eadbd3a714b6aca49b56c4db268dd019ea7..bf7b1d4895d82c5bb188cc2c2f3abc54238379c6 100644 (file)
@@ -310,10 +310,11 @@ MAKEDIR = || exec false; \
 @BROKEN_CC@    -mv `echo $@ | sed 's%^.*/%%g'` $@
 
 # 'make pch' is extremely useful for fast compiles if you have gcc-3.4
-pch: basics
-       rm -f $(srcdir)/include/includes.h.gch
+pch: pch_clean basics
        $(CC) -I. -I$(srcdir) $(FLAGS) -c $(srcdir)/include/includes.h -o $(srcdir)/include/includes.h.gch
 
+pch_clean:
+       rm -f $(srcdir)/include/includes.h.gch
 
 idl_full: build/pidl/idl.pm
        CPP="@CPP@" script/build_idl.sh FULL
@@ -535,7 +536,7 @@ clean: delheaders
 # afterwards.
 proto_exists: include/proto.h include/build_env.h
 
-delheaders:
+delheaders: pch_clean
        @/bin/rm -f $(srcdir)/include/proto.h $(srcdir)/include/build_env.h 
 
 include/proto.h: