diff options
author | Melody Horn <melody@boringcactus.com> | 2021-03-25 22:18:56 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-03-25 22:18:56 -0600 |
commit | 91fa36cf9916388842e33d5b3698d6e7e694b38a (patch) | |
tree | 41a96ceef28c6dd0125decabe072c36a37b1e1bc | |
parent | dfbeba22a437bb2134f696f0d266dbf734944012 (diff) | |
download | yapymake-91fa36cf9916388842e33d5b3698d6e7e694b38a.tar.gz yapymake-91fa36cf9916388842e33d5b3698d6e7e694b38a.zip |
define MAKE=yapymake
-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', |