mirror of
https://github.com/libretro/cpp-cheat.git
synced 2025-04-05 20:41:32 +00:00
21 lines
350 B
Makefile
21 lines
350 B
Makefile
.POSIX:
|
|
|
|
# Set a variable for a single target.
|
|
|
|
# TODO check: It is only possible to set one per line.
|
|
|
|
# TODO check: not possible to define on the same line
|
|
# as the actual rule to avoid repeating the target.
|
|
# But we could work around that by storing the target in a variable.
|
|
|
|
x := 0
|
|
|
|
.PHONY: a
|
|
|
|
a: x := 1
|
|
a:
|
|
@[ '$x' = '1' ]
|
|
|
|
b:
|
|
@[ '$x' = '0' ]
|