6 ms·
One thing I've found useful about gulp and webpack is the fact that it's multiplatform. What is the best approach to make sure your Makefile will work as expec
by juliend2 9y ago
One thing I've found useful about gulp and webpack is the fact that it's multiplatform.
What is the best approach to make sure your Makefile will work as expected on every platform, meaning, windows included?
For example: Can we write file paths using forward-slashes, or is it still an issue? I imagine running it via git bash (bash provided by the git installer on windows).
- metalliqaz 9y agoAh yes, the horror of autoconf and automake...
- rmgraham 9y agoYou can use forward slashes for paths on Windows in your Makefile. They are actually required if you want to use wildcards.
- jcadam 9y agoCMake! No, I'm kidding, don't really use CMake...
- jcadam 9y agoDownvote?! Looks like we have a CMake fan...
- theothershoe 9y agoGood point - cross platform issues are a concern. I've noticed in the past that OS X machines tend to run older versions of Make (unless the owner has installed a newer version with Homebrew). It is a good idea to pay attention to the Make features that you use, understand which features were added in recent versions, and be aware of which features are specific to GNU Make. In my projects I recommend that users make sure that they are in fact using GNU Make. Some systems might not support the `-p` flag in `mkdir -p`, or the `-rf` flags in `rm -rf`. There are scripts distributed on NPM called `mkdirp` and `rimraf` to work around such issues.
- wbkang 9y agoBtw Windows has supported slashes forever. Just don't mix the two.
- dblotsky 9y agoMake works on Windows. You can get it standalone, or as part of MinGW (and then even other Unix tools will work).