Created
August 11, 2017 23:14
-
-
Save pokle/6a87f569d848766a6481618215eb5858 to your computer and use it in GitHub Desktop.
Makefile to illustrate the difference between `=` and `:=`
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
TS = $(shell date) | |
# TS := $(shell date) | |
a: b | |
@sleep 1 | |
@echo $(TS) | |
touch a | |
b: c | |
@sleep 1 | |
@echo $(TS) | |
touch b | |
c: | |
@sleep 1 | |
@echo $(TS) | |
touch c | |
clean: | |
rm -f a b c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment