aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-25 22:18:56 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-25 22:18:56 -0600
commit91fa36cf9916388842e33d5b3698d6e7e694b38a (patch)
tree41a96ceef28c6dd0125decabe072c36a37b1e1bc
parentdfbeba22a437bb2134f696f0d266dbf734944012 (diff)
downloadyapymake-91fa36cf9916388842e33d5b3698d6e7e694b38a.tar.gz
yapymake-91fa36cf9916388842e33d5b3698d6e7e694b38a.zip
define MAKE=yapymake
-rw-r--r--README.md1
-rw-r--r--yapymake/makefile/__init__.py2
2 files changed, 2 insertions, 1 deletions
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',