Makefile
VALUE = default
print_value:
@ echo Value is $(VALUE)
Slide 22
Slide 22 text
Makefile
list_all:
@ ls -la
Slide 23
Slide 23 text
Makefile
list_all:
@ ls -la
Slide 24
Slide 24 text
Makefile
LS = docker run \
--rm -w /app -v "$(realpath .):/app" bash:5 \
ls
list_all:
@ $(LS) -la
Slide 25
Slide 25 text
Makefile
ifeq ($(OS), Windows_NT)
HOME = $(USERPROFILE)
endif
home:
@ echo There is no place like $(HOME)
Slide 26
Slide 26 text
Make is pretty
powerful
Slide 27
Slide 27 text
Makefile
VALUE ?= default
print_value:
@ echo Value is $(VALUE)
Slide 28
Slide 28 text
Makefile
release: require_version
@ echo "Starting $(VERSION) release..."
require_version:
ifndef VERSION
$(error You must specify a VERSION variable)
endif