plugins/consoles/win32cons/group/os_ver.mk
changeset 106 e7feb3e56cd0
parent 1 6c055a136ec1
child 108 2c2fba140295
--- a/plugins/consoles/win32cons/group/os_ver.mk	Sun Nov 07 12:43:47 2010 +0000
+++ b/plugins/consoles/win32cons/group/os_ver.mk	Sun Nov 07 21:58:33 2010 +0000
@@ -1,19 +1,39 @@
-# os_ver.mk
-# 
-# Copyright (c) 2010 Accenture. All rights reserved.
+# Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+# All rights reserved.
 # This component and the accompanying materials are made available
-# under the terms of the "Eclipse Public License v1.0"
+# under the terms of "Eclipse Public License v1.0"
 # which accompanies this distribution, and is available
 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
-# 
+#
 # Initial Contributors:
-# Accenture - Initial contribution
+# Nokia Corporation - initial contribution.
+#
+# Contributors:
+#
+# Description:
 #
-MAKMAKE :
+
+# To ensure that EPOCROOT always ends with a forward slash
+TMPROOT:=$(subst \,/,$(EPOCROOT))
+EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
+
+GENERATED_SOURCE_DIR = $(EPOCROOT)epoc32/build/fshell/win32cons/generated
+GENERATED_SOURCE = $(GENERATED_SOURCE_DIR)/os_version.h
+ 
+
+OSVER:= $(EPOCROOT)sf/os/fshell/fshell/plugins/consoles/win32cons/group/os_version_h.pl
+
+
+MAKMAKE : $(GENERATED_SOURCE)
+
+$(GENERATED_SOURCE) :
 	perl $(EPOCROOT)epoc32\tools\emkdir.pl $(EPOCROOT)epoc32\build\fshell/win32cons\generated
-	perl .\os_version_h.PL > $(EPOCROOT)epoc32\build\fshell/win32cons\generated\os_version.h
-
+	perl $(OSVER) > $(GENERATED_SOURCE)
+ 
 CLEAN :
 	-del ..\src\os_version.h
 
 BLD FREEZE LIB CLEANLIB RESOURCE SAVESPACE RELEASABLES FINAL : 
+
+
+