Added Version.c.in handling.

This commit is contained in:
Andy McFadden 2003-01-10 22:42:44 +00:00
parent 122bb55030
commit 5f9ad84311

View File

@ -66,7 +66,6 @@ OutDir=.\Release
ALL : "$(OUTDIR)\nufxlib.dll" ALL : "$(OUTDIR)\nufxlib.dll"
CLEAN : CLEAN :
-@erase "$(INTDIR)\Archive.obj" -@erase "$(INTDIR)\Archive.obj"
-@erase "$(INTDIR)\ArchiveIO.obj" -@erase "$(INTDIR)\ArchiveIO.obj"
@ -94,6 +93,7 @@ CLEAN :
-@erase "$(OUTDIR)\nufxlib.dll" -@erase "$(OUTDIR)\nufxlib.dll"
-@erase "$(OUTDIR)\nufxlib.exp" -@erase "$(OUTDIR)\nufxlib.exp"
-@erase "$(OUTDIR)\nufxlib.lib" -@erase "$(OUTDIR)\nufxlib.lib"
-@erase "Version.c"
"$(OUTDIR)" : "$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
@ -247,6 +247,7 @@ CLEAN :
-@erase "$(OUTDIR)\nufxlib.ilk" -@erase "$(OUTDIR)\nufxlib.ilk"
-@erase "$(OUTDIR)\nufxlib.lib" -@erase "$(OUTDIR)\nufxlib.lib"
-@erase "$(OUTDIR)\nufxlib.pdb" -@erase "$(OUTDIR)\nufxlib.pdb"
-@erase "Version.c"
"$(OUTDIR)" : "$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
@ -773,5 +774,13 @@ SOURCE="Version.c"
!ENDIF !ENDIF
# this isn't great, but it'll have to do
SOURCE="Version.c.in"
Version.c: Version.c.in
copy Version.c.in Version.c
@echo -
@echo - NOTE: you must update Version.c by hand
@echo -
!ENDIF !ENDIF