Bewlar
Bewlar

Reputation: 81

What does this batch file code execute?

I understand Call runs the batch file

I'm confused because:

Code is as follows:

ECHO ---------------------------------------------
CALL make -f Makefilep
CALL make -f Makefilep UpdateSerial

Upvotes: 0

Views: 105

Answers (2)

Jeff Zeitlin
Jeff Zeitlin

Reputation: 10819

A minor correction to your understanding of CALL: CALL executes a batch file (or subroutine in the current batch file) and returns to the calling batch file.

What is happening in this batch file is that make is being executed, with the parameters (not commands) -f and Makefilep being passed to the first time it is called, and the parameters -f, Makefilep, and UpdateSerial being passed the second time.

What those parameters mean is defined by the make program; if make is a batch file, you would have to look at its code to determine what they mean. If they are executable files (.exe), you will have to consult any provided documentation.

While CALL is primarily used for calling batch files and batch subroutines, it can also be used with executables (.exe). However, it's not needed with executables; normally, when an executable finishes its run, the batch file resumes from where it left off.

Upvotes: 2

Captain Whippet
Captain Whippet

Reputation: 2223

It's hard to tell what the context is, but it could be related to GNU make.

http://www.gnu.org/software/make/manual/make.html#Makefile-Arguments

Upvotes: 0

Related Questions