Say on FreeBSD an application needs to be compiled with GNU make (gmake), not the standard system make. Is there any directive I could put to the Makefile to stop executing it and print an error if the Makefile is not compiled with gmake?
相关问题
- CMakeList file to generate LLVM bitcode file from
- Makefile to compile lists of source files
- Have make fail if unit tests fail
- C++ - Compiling multiple files
- Trigger missing dependencies in (parallel) GNU mak
相关文章
- How get the time in milliseconds in FreeBSD?
- How to arrange a Makefile to compile a kernel modu
- Makefile and use of $$
- Makefile: all vs default targets
- Automake Variables to tidy up Makefile.am
- How do I check the exit status of a Makefile shell
- Marking a makefile dependency as optional or other
- How to instruct Makefile to use different compiler
This is an addon to Jack Kelly's answer.
After you have renamed your Makefile to GNUmakefile create Makefile with:
This will call gmake for you every time you run make.
Call your makefile
GNUmakefile
. GNU Make will find it, but not other makes.