Created
March 17, 2017 09:55
-
-
Save nbari/08593ca27e7037b682c2d2c76ddd5a33 to your computer and use it in GitHub Desktop.
define variable within makefile rule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: all test clean | |
GLOBAL="spirituosen" | |
all: | |
@echo ${GLOBAL} | |
test: | |
$(eval GLOBAL="trinken") | |
@echo ${GLOBAL} | |
kai: all test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment