Making Makefiles

Alex Tercete
February 21, 2020

Making Makefiles

Makefiles are pretty if you learned to appreciate their beauty.

Alex Tercete

February 21, 2020

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

33 slides
  1. Makefile build: docker build -t my_image . run: build docker

    run -w /app -v $(realpath .):/app my_image
  2. Makefile LS = docker run \ --rm -w /app -v

    "$(realpath .):/app" bash:5 \ ls list_all: @ $(LS) -la
  3. Makefile REMOTE_URL = $(shell git remote get-url origin) ifeq ($(subst

    git@,,$(REMOTE_URL)), $(REMOTE_URL)) REMOTE_PROTOCOL = HTTPS else REMOTE_PROTOCOL = SSH endif print_remote_protocol: @ echo $(REMOTE_PROTOCOL)

More Decks by Alex Tercete

Other Decks in Programming