3 ms·
I’ve had a lot of fun recently writing a Makefile for a Go and Lambda app: https://github.com/nzoschke/gofaas/blob/master/Makefile https://github.com/nzoschke/
by nzoschke 9y ago
I’ve had a lot of fun recently writing a Makefile for a Go and Lambda app:
https://github.com/nzoschke/gofaas/blob/master/Makefile https://github.com/nzoschke/gofaas/blob/master/Makefile
It started very verbose, one target for every Go program, until I figured out target patterns.
I’m also enjoying the -j flag to do things in parallel.
Now it’s 3 lines of Make to build 10 go programs in parallel in seconds.
Parallel is also enough job control to run the development server and to watchexec rebuilding all go programs on code change.
- wbkang 9y agoLooks good, I think you need to add PHONY targets