SCRIPT_SUBST_VARS := \
INSTALLING \
- PROJECTNAME PROJECTVERSION PROJECTPATCHLEVEL \
+ ProjectName ProjectVersion ProjectVersionInt ProjectPatchLevel
CURRENT_DIR HOSTPLATFORM TARGETPLATFORM \
GHC_LIB_DIR GHC_RUNTIME_DIR GHC_UTILS_DIR GHC_INCLUDE_DIR \
GHC_OPT_HILEV_ASM GhcWithNativeCodeGen LeadingUnderscore\
HOSTPLATFORM TARGETPLATFORM
-PROJECTNAME PROJECTVERSION PROJECTPATCHLEVEL
+ProjectName ProjectVersion ProjectVersionInt ProjectPatchLevel
TOP_PWD
# We need to look in ghc/ and glaExts/ when searching for implicitly needed .hi files, but
# we should really *not* look there for explicitly imported modules.
-$GhcVersionInfo = int($PROJECTVERSION * 100 + .5); # i.e., round (X.Y * 100)
+$GhcVersionInfo = $ProjectVersionInt
$Haskell1Version = 4; # i.e., Haskell 1.4
@Cpp_define = ();
Tell the world who we are, if they asked.
\begin{code}
-print STDERR "${PROJECTNAME}, version ${PROJECTVERSION}, patchlevel ${PROJECTPATCHLEVEL}\n"
+print STDERR "${ProjectName}, version ${ProjectVersion}, patchlevel ${ProjectPatchLevel}\n"
if $Verbose;
\end{code}
if \$running_under_some_shell;
# =!=!=!=!=!=!=!=!=!=!=!
# This script is automatically generated: DO NOT EDIT!!!
-# Generated by Glasgow Haskell, version ${PROJECTVERSION} ${PROJECTPATCHLEVEL}
+# Generated by Glasgow Haskell, version ${ProjectVersion} ${ProjectPatchLevel}
#
\$pvm_executable = '$pvm_executable';
\$pvm_executable_base = '$pvm_executable_base';
if (/^-\?$/ || /^--?help$/) { print $LongUsage; exit $Status; }
#-----------version ----------------------------------------------------
- /^--version$/ && do { print STDERR "${PROJECTNAME}, version ${PROJECTVERSION}, patchlevel ${PROJECTPATCHLEVEL}\n"; exit $Status; };
+ /^--version$/ && do { print STDERR "${ProjectName}, version ${ProjectVersion}, patchlevel ${ProjectPatchLevel}\n"; exit $Status; };
#---------- verbosity and such -----------------------------------------
/^-v$/ && do { $Verbose = '-v'; $Time = 'time'; next arg; };
# ghc project specific make variables
#
-#
-PROJECTVERSION=$(GhcProjectVersion)
-PROJECTNAME=$(GhcProjectName)
-PROJECTPATCHLEVEL=$(GhcProjectPatchLevel)
-
-
# Override default haskell compiler if required
#HC = $(WithGhcHc)
HaskellCompilerType = $(WithGhcHcType)
SCRIPT_SUBST_VARS=\
INSTALLING \
TOP_PWD \
- PROJECTVERSION
+ ProjectVersionInt
ifneq "$(BIN_DIST)" "1"
SCRIPT_SUBST_VARS += libdir TMPDIR
# TOP_PWD
# libdir
# libexecdir
-# PROJECTVERSION
+# ProjectVersionInt
# HSP_IMPORTS
if ( $ENV{'TMPDIR'} ) { # where to make tmp file names
push(@Files, $_);
}
-$ghc_version_info = int(${PROJECTVERSION} * 100);
+$ghc_version_info = ${ProjectVersionInt}
$DoHsCpp = ( ! $DoCpp ) ? 'cat'
: "$HsCpp -D__HASKELL1__=2 -D__GLASGOW_HASKELL__=$ghc_version_info $Cpp_opts";
SCRIPT_SUBST_VARS= \
TOP_PWD \
INSTALLING \
- PROJECTVERSION
+ ProjectVersionInt
INTERP=perl
#
# RAWCPP TMPDIR TOP_PWD
# libdir libexecdir datadir INSTALLING
-# PROJECTVERSION SED
+# ProjectVersionInt SED
#
# tries to work like mkdependC - capable of dealing with:
#
$End_magic_str = "# DO NOT DELETE: End of Haskell dependencies\n";
@Obj_suffix = ("o");
@File_suffix = ();
-$ghc_version_info = int ( ${PROJECTVERSION} * 100 );
+$ghc_version_info = ${ProjectVersionInt}
$Import_dirs = '.';
%Syslibs = ();
ProjectName = $($(Project)ProjectName)
ProjectNameShort = $($(Project)ProjectNameShort)
ProjectVersion = $($(Project)ProjectVersion)
+ProjectVersionInt = $($(Project)ProjectVersionInt)
ProjectPatchLevel = $($(Project)ProjectPatchLevel)
#################################################################################
#
GhcProjectName = The Glorious Glasgow Haskell Compilation System
GhcProjectNameShort = ghc
-GhcProjectVersion = 3.01
+GhcProjectVersion = 3.01 # treated as a *string*
+GhcProjectVersionInt = 301 # treated as an *integer* (for cpp defines)
GhcProjectPatchLevel = 0
#---------------------------------------------------------------
HappyProjectName = Happy
HappyProjectNameShort = happy
HappyProjectVersion = 1.5
+HappyProjectVersionInt = 15
HappyProjectPatchLevel = 0
# The compiler you'd like to use to compile Happy