Skip to content

Instantly share code, notes, and snippets.

@pokle
Created August 11, 2017 23:14
Show Gist options
  • Save pokle/6a87f569d848766a6481618215eb5858 to your computer and use it in GitHub Desktop.
Save pokle/6a87f569d848766a6481618215eb5858 to your computer and use it in GitHub Desktop.
Makefile to illustrate the difference between `=` and `:=`
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