Windows: Cleanup .exp .res .manifest and others
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 5 Jun 2010 23:29:59 +0000 (19:29 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Sat, 5 Jun 2010 23:34:01 +0000 (16:34 -0700)
Fix the cleanup procedure to work when the tree has not previously
been built.

Delete .exp, .res, and .manifest files from the $(OBJ) tree.

Perform cleanup on all language directories.

Change-Id: I2a24c69293066f012cb869fe67dbacb5ffdc2d43
Reviewed-on: http://gerrit.openafs.org/2087
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

NTMakefile
src/WINNT/afsapplib/NTMakefile
src/WINNT/afssvrcfg/NTMakefile
src/WINNT/afssvrcpa/NTMakefile
src/WINNT/afssvrmgr/NTMakefile
src/WINNT/afsusrmgr/NTMakefile
src/WINNT/client_creds/NTMakefile
src/config/NTMakefile.amd64_w2k
src/config/NTMakefile.i386_nt40
src/config/NTMakefile.i386_w2k

index 36872be..54c818b 100644 (file)
@@ -643,7 +643,9 @@ install: finale
 
 # Clean target for obj tree
 clean:
-       nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile clean" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile clean" "NTMAKE_OBJS = nmake /nologo /f ntmakefile clean" install
+       $(CD) $(SRC)\config
+       nmake /nologo /f ntmakefile version
+       $(CD) ..\..
        nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile clean" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile clean" "NTMAKE_OBJS = nmake /nologo /f ntmakefile clean" media
        $(CD) $(SRC)\config
        nmake /nologo /f ntmakefile clean_version
index d9835b1..81d3b3e 100644 (file)
@@ -137,7 +137,7 @@ $(DLLFILE) : $(DLLOBJS) $(DLLLIBS)
 clean::
        $(CD) lang
         @if exist AFS_component_version_number.h del AFS_component_version_number.h
-       for /f %l in ('dir /B ??_??') do ( if exist @$(NTLANG) do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean )
+       for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean
        $(CD) ..
 
 
index 3472275..81c6e0a 100644 (file)
@@ -95,7 +95,7 @@ lang::
 clean::
        $(CD) lang
         @if exist AFS_component_version_number.h del AFS_component_version_number.h
-       for /f %l in ('dir /B ??_??') do ( if exist @$(NTLANG) do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean )
+       for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean
        $(CD) ..
 
 mkdir:
index cbbdba4..b8bd383 100644 (file)
@@ -60,7 +60,7 @@ lang::
 clean::
        $(CD) lang
         @if exist AFS_component_version_number.h del AFS_component_version_number.h
-       for /f %l in ('dir /B ??_??') do ( if exist @$(NTLANG) do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean )
+       for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean
        $(CD) ..
 
 mkdir:
index a6c7e73..6c83727 100644 (file)
@@ -128,7 +128,7 @@ $(OUT)\svrmgr_stub.res : AFS_component_version_number.h
 clean::
        $(CD) lang
         @if exist AFS_component_version_number.h del AFS_component_version_number.h
-       for /f %l in ('dir /B ??_??') do ( if exist @$(NTLANG) do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean )
+       for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean
        $(CD) ..
 
 mkdir:
index 068adff..5cc3cd2 100644 (file)
@@ -99,7 +99,7 @@ $(OUT)\AfsUsrMgr_stub.res : AFS_component_version_number.h
 clean::
        $(CD) lang
         @if exist AFS_component_version_number.h del AFS_component_version_number.h
-       for /f %l in ('dir /B ??_??') do ( if exist @$(NTLANG) do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean )
+       for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean
        $(CD) ..
 
 mkdir:
index ce1017e..950ce77 100644 (file)
@@ -128,7 +128,7 @@ $(OUT)\afscreds_stub.res : afscreds_stub.rc AFS_component_version_number.h
 clean::
        $(CD) lang
         @if exist AFS_component_version_number.h del AFS_component_version_number.h
-       for /f %l in ('dir /B ??_??') do ( if exist @$(NTLANG) do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean )
+       for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean
        $(CD) ..
 
 mkdir:
index baa9a0b..08da06d 100644 (file)
@@ -220,7 +220,7 @@ RXGEN = $(DESTDIR)\bin\rxgen
 
 # Common clean target.
 clean::
-       $(DEL) /q $(OUT)\*.obj $(OUT)\*.lib $(OUT)\*.dll $(OUT)\*.exe $(OUT)\*.pdb
+       $(DEL) /q $(OUT)\*.obj $(OUT)\*.lib $(OUT)\*.dll $(OUT)\*.exe $(OUT)\*.pdb $(OUT)\*.res $(OUT)\*.manifest $(OUT)\*.exp
        $(DEL) /q $(OUT)\*_component_version_number.* *_component_version_number.*
 
 # Common lang target.
index ece4a45..64fd0ff 100644 (file)
@@ -226,7 +226,7 @@ RXGEN = $(DESTDIR)\bin\rxgen
 
 # Common clean target.
 clean::
-       $(DEL) /q $(OUT)\*.obj $(OUT)\*.lib $(OUT)\*.dll $(OUT)\*.exe $(OUT)\*.pdb
+       $(DEL) /q $(OUT)\*.obj $(OUT)\*.lib $(OUT)\*.dll $(OUT)\*.exe $(OUT)\*.pdb $(OUT)\*.res $(OUT)\*.manifest $(OUT)\*.exp
        $(DEL) /q $(OUT)\*_component_version_number.* *_component_version_number.*
 
 # Common lang target.
index d570066..ec9957f 100644 (file)
@@ -230,7 +230,7 @@ RXGEN = $(DESTDIR)\bin\rxgen
 
 # Common clean target.
 clean::
-       $(DEL) /q $(OUT)\*.obj $(OUT)\*.lib $(OUT)\*.dll $(OUT)\*.exe $(OUT)\*.pdb
+       $(DEL) /q $(OUT)\*.obj $(OUT)\*.lib $(OUT)\*.dll $(OUT)\*.exe $(OUT)\*.pdb $(OUT)\*.res $(OUT)\*.manifest $(OUT)\*.exp
        $(DEL) /q $(OUT)\*_component_version_number.* *_component_version_number.*
 
 # Common lang target.