make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running a batch file within a makefile


From: Norris, Nelson [LBRT/LNA]
Subject: Running a batch file within a makefile
Date: Wed, 25 Aug 2004 10:32:59 -0400

Hello,
 
I am trying to have my makefile, which builds the code for my project, call a batch file before it starts parsing the targets.  The purpose of the batch file is to set environment variables, so that every developer doesn't have to manually put them into their System's environment variables.
 
I am using Windows 2000, and cmd.exe as my "shell" program.
 
I would like to be able to open a DOS prompt window, type "gmake <build options>", and have the environment set with the proper values BEFORE building the code.
 
Has anyone tried this (and had success)?
 
P.S. Opus Make has a command called '%setenv', which allows you to set environment variables in the makefile.
I can't find any such similar command in GNU make.
 
 
Regards,
 
 
Nelson J. Norris
 
This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorized to
retain, read, copy or disseminate this message or any part of it.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]