Created
December 16, 2024 12:54
-
-
Save nbargnesi/2ef0c1f023af88126c07da478283a536 to your computer and use it in GitHub Desktop.
Go Makefile, step one
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PROGS := $(subst cmd/,,$(wildcard cmd/*)) | |
| .PHONY: $(PROGS) | |
| all: $(PROGS) | |
| $(PROGS): | |
| go build -o $@ cmd/$@/*.go | |
| .PHONY: clean | |
| clean: | |
| rm -fv $(PROGS) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment