From 91fa36cf9916388842e33d5b3698d6e7e694b38a Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Thu, 25 Mar 2021 22:18:56 -0600 Subject: define MAKE=yapymake --- README.md | 1 + yapymake/makefile/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 77f3c2b..6dafc51 100644 --- a/README.md +++ b/README.md @@ -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', -- cgit v1.2.3