Allow environment variable ROS_INSTALL to set installation dir

svn path=/trunk/; revision=6454
This commit is contained in:
Gé van Geldorp 2003-10-29 08:40:38 +00:00
parent fd5226dd32
commit ce50eff0b5
2 changed files with 8 additions and 3 deletions

View file

@ -3,6 +3,9 @@ if "%1" == "" goto NoParameter
set ROS_INSTALL=%1
goto Install
:NoParameter
if "%ROS_INSTALL%" == "" goto UseDefault
goto Install
:UseDefault
set ROS_INSTALL=c:\reactos
:Install
echo Installing to %ROS_INSTALL%

View file

@ -57,10 +57,12 @@ PIPE := -pipe
endif
# Set INSTALL_DIR to default value if not already set
# ifeq ($(INSTALL_DIR),)
# Use environment var ROS_INSTALL to override default install dir
ifeq ($(ROS_INSTALL),)
INSTALL_DIR = $(PATH_TO_TOP)/reactos
# endif
else
INSTALL_DIR = $(ROS_INSTALL)
endif
# Set DIST_DIR to default value if not already set
# ifeq ($(DIST_DIR),)