Makefile Recipe: Build with Docker and Export To A Gzipped Tarball

from blog Blog on hjr265.me, | ↗ original
I have been writing a lot of Makefiles lately. I find them simple and easy to like. And, as with all old-school things, I am starting to overlook its quirks. I needed to write a Makefile that lets me build something with Docker and then export the entire contents of the image to a gzipped tarball. The first part is easy: 1 2 3 .PHONY: build...