Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Make" command for Windows - possible options?

I am trying to setup Derby.js for Node on my Windows Machine. According to the Derby.js setup instructions, in order to use coffescript, I must do the following:

$ cd ~
$ derby new --coffee first-project 
$ cd first-project 
$ make

This worked, up until the "make" portion, which obviously requires a make program. I downloaded a make.exe file that is supposed to get it going, but it tells me that it can't find the file. I opened the make-file in a text editor to see if the path it pointed to exists, and it does. I'm wondering if it has to reference the path to the file differently since its located on windows and is being run through the command prompt? Does anyone know what I might be able to do? All I can think of is setting it up on a VM of linux, and then copying the files over, but it's a bit of a pain to do.

like image 893
JosephG Avatar asked May 26 '13 02:05

JosephG


People also ask

What is make command on Windows?

Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files. Make gets its knowledge of how to build your program from a file called the makefile, which lists each of the non-source files and how to compute it from other files.

What is the use of make command?

The make command assists in maintaining a set of programs, usually pertaining to a particular software project, by building up-to-date versions of programs. The make command is most useful for medium-sized programming projects.


2 Answers

As you found, a stand-alone make wasn't enough; you needed Cygwin.

make is a program that interprets a makefile and executes the commands in the makefile. But, what are those commands? If you look at your makefile you will see UNIX-style commands that are available in Linux, Mac OS X, or Cygwin but are not available in an off-the-shelf Windows system. Thus, simply grabbing a make wasn't enough.

like image 103
steveha Avatar answered Oct 15 '22 03:10

steveha


So I ended up downloading Cygwin and used the "make" system that came with it. It worked perfectly! I honestly have no idea why the GnuWin32 "make" command didn't work, but I suppose this would be helpful to those who encounter the same issue in the future.

like image 27
JosephG Avatar answered Oct 15 '22 01:10

JosephG