mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 06:50:12 +00:00
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:
parent
380f9a46a3
commit
24ff8eb0dd
@ -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
|
||||
|
@ -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) ..
|
||||
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user