diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | yapymake/makefile/__init__.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -9,6 +9,7 @@ A (mostly) [POSIX-compatible](https://pubs.opengroup.org/onlinepubs/9699919799/u - signal handling not implemented - library handling not implemented - some POSIX-specified features are pending (search `TODO` for a list) +- builtin macro `MAKE` is defined as `sys.argv[0]` (i.e. however you invoked `yapymake`) ## status diff --git a/yapymake/makefile/__init__.py b/yapymake/makefile/__init__.py index 609281e..ee1cb74 100644 --- a/yapymake/makefile/__init__.py +++ b/yapymake/makefile/__init__.py @@ -536,7 +536,7 @@ BUILTIN_INFERENCE_RULES = [ ]), ] BUILTIN_MACROS: Dict[str, Union[str, TokenString]] = { - 'MAKE': 'make', + 'MAKE': sys.argv[0], 'AR': 'ar', #'ARFLAGS': '-rv', 'YACC': 'yacc', |