]> 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)
committerDerrick Brashear <shadow@dementia.org>
Thu, 3 Feb 2011 11:25:54 +0000 (03:25 -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.

Reviewed-on: http://gerrit.openafs.org/3615
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 605b7c3baaeb7553cb2e150f1156eba6be04c1f8)

Change-Id: Ia215c34f06976dee588292fccb7396a49ab98035
Reviewed-on: http://gerrit.openafs.org/3813
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
NTMakefile
src/config/NTMakefile

index f7ef2f3ba04c69d7ff78e79e7ecf6cc29ce69e13..4b4597649e9bf4c74ed6be74813fd109956e1c9d 100644 (file)
@@ -673,11 +673,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 04ff14268d7557290d9da437faf1d2f327f2ff18..42be50a9701ba6efef4d8663e49f499836def4de 100644 (file)
@@ -544,12 +544,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)