Skip to content

Comment on Do More and `make` Less with GNU Make and Less.js

Comments

So, when there are so many build systems out there, why make? > * it is supported on almost all systems

Except the elephant in the room, Windows.

GNU Make can be used on Windows. Of course, it's easiest to use it on GNU/Linux or one of the other UNIX-like operating systems.

Yes but most Makefiles, including the one in this article, use commands that do not work on Windows.

There is gnu-make for windows and unless your is makefile super elaborate, it works.

The makefile in this example wouldn't work on Windows. lessc should be lessc.cmd

node_modules/".bin"/lessc works! There are some subtile things like dirnames with dots need to be quoted but quoted forward slashes given to mkdir creates path seperator fuck ups C:\first/meh\second..

Annoying. But I still don't miss grunt :)

I'm not a Windows computer right now, but I believe you can't execute Node globals without the .cmd, am I wrong? If you have lessc in your PATH can you just do lessc (as this article does) or must you do lessc.cmd?

cygwin.com clears up that problem.

reminds me of the git monoculture article from a few days ago. Work best on Mac(tm)!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.