-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Minimal example of the issue:
# foo/makefile
echo-makeflags:
@echo $(MAKEFLAGS)
Command line:
$: make -B echo-makeflags
B
When passing to submake, I have the following problem: suppose there are no makeflags?
# bar/makefile
relay-%:
ifdef $(MAKEFLAGS)
some-command-relay-technique $* -$(MAKEFLAGS)
else
some-command-relay-technique $*
endif
# fix
ifdef MAKEFLAGS
RELAYFLAGS+=-$(MAKEFLAGS)
endif
# but now RELAYFLAGS is introduced
Metadata
Metadata
Assignees
Labels
No labels