diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-23 10:49:47 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-23 10:49:47 -0400 |
commit | 0b5a97861b8088c326abe81094a207cc3daeacea (patch) | |
tree | 470269c0b4a695641f8bc627e5a6d6cb3bc8cd08 | |
parent | 8262acf87003b98ffdb0973d738370524d5516c8 (diff) |
add a GNUmakefile to hack the make flags, so it doesn't need any flags
-rw-r--r-- | GNUmakefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..b8bfc35 --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,13 @@ +# This file is a hack to let us pass whatever flags we want to Make, +# since adjusting MAKEFLAGS at runtime only half-works. +# +# Most of the complexity is dancing around to avoid having any +# possibly conflicting identifiers. + +MAKEFLAGS += --no-print-directory +rest = $(wordlist 2,$(words $1),$1) +target = $(or $(firstword $(MAKECMDGOALS)),default) +$(target): + @+$(MAKE) -f Makefile --no-builtin-rules --no-builtin-variables --warn-undefined-variables $(MAKECMDGOALS) +$(or $(call rest,$(MAKECMDGOALS)),_$(target)): $(target) + @: |