Windows: Cleanup .exp .res .manifest and others

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>
This commit is contained in:
Jeffrey Altman 2010-06-05 19:29:59 -04:00 committed by Jeffrey Altman
parent 380f9a46a3
commit 24ff8eb0dd
10 changed files with 12 additions and 10 deletions

View 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

View 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) ..

View 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:

View 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:

View 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:

View 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:

View 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:

View 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.

View 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.

View 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.