| 1 | # |
| 2 | # This Makefile serves two purposes: |
| 3 | # 1) If the user types "make" without having run "configure", we suggest running configure. |
| 4 | # 2) Our build system is written for GNU make, and makes liberal users of its features. |
| 5 | # We therefore put it into "GNUmakefile", which is picked up by GNU make, but ignore by |
| 6 | # other make versions, such as BSD make. |
| 7 | # Thus, if the user has BSD make, it will run this Makefile instead -- and we inform |
| 8 | # them that they need to use GNU make to compile GAP. |
| 9 | # |
| 10 | # To learn more about the GAP build system, see README.buildsys.md |
| 11 | # |
| 12 | .DEFAULT: |
| 13 | @if test -f GNUmakefile ; then \ |
| 14 | printf "Please use GNU make to build GAP (try 'gmake' or 'gnumake')\n" ; \ |
| 15 | else \ |
| 16 | printf "You need to run "; \ |
| 17 | if ! test -f configure ; then \ |
| 18 | printf "./autogen.sh then "; \ |
| 19 | fi; \ |
| 20 | printf "./configure before make (please refer to INSTALL for details)\n" ; \ |
| 21 | fi |
| 22 | @exit 1 |
| 23 | all: .DEFAULT |