]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: permit clean when switching platforms
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 4 Jan 2011 02:07:10 +0000 (21:07 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Tue, 4 Jan 2011 02:24:15 +0000 (18:24 -0800)
When switching between i386 and amd64 in the same build tree
the "clean" make directive would fail due to NTLang.bat not
having been built in the new platform's destination directory.
Force NTLang.bat to be built as a dependency of cleanup and
delete it at the end along with the version files.

Change-Id: I49a44204c636ab9ad89be44d4fad20ed6050fdda
Reviewed-on: http://gerrit.openafs.org/3615
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
NTMakefile
src/config/NTMakefile

index 88102c4e8a7b48076ee50ad72d8a22fb1af6ff4c..9222668ed0d7e3bf61bc33014dbcbb016e9f21ee 100644 (file)
@@ -701,11 +701,11 @@ install: finale
 # Clean target for obj tree
 clean:
        $(CD) $(SRC)\config
-       nmake /nologo /f ntmakefile version
+       nmake /nologo /f ntmakefile version langsetup
        $(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
+       nmake /nologo /f ntmakefile clean_final
        $(CD) ..\..
 
 # Language-only build target
index c34f811794b80a76afd9d47306d165dd6d1fddf2..4043fd573c4a0531296dc978846d6137ef1eba81 100644 (file)
@@ -550,12 +550,11 @@ langsetup: $(DESTDIR)\bin\NTLang.bat
 
 install: idirs $(INCFILES) $(INCTOOLS) $(INCCOPY) version $(DESTDIR)\NTDllmap.txt langsetup
 
-install9x: install
-
 # This clean target must be named something different than the universal
-# 'clean' so that the version file can be removed last.
-clean_version:
+# 'clean' so that the version and NTLang.bat files can be removed last.
+clean_final:
        -$(DEL) NTMakefile.version
+        -$(DEL) $(DESTDIR)\bin\NTLang.bat
 
 clean::
         -$(DEL) $(INCFILES)