From 294fab103fa610f0bd0d1b729dcf75959c61039b Mon Sep 17 00:00:00 2001 From: Bojan Serafimov Date: Thu, 2 Jun 2022 20:34:53 -0400 Subject: [PATCH] Rebuild on change in makefiles --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 50e2c8ab7f..31f236089f 100644 --- a/Makefile +++ b/Makefile @@ -113,3 +113,7 @@ fmt: .PHONY: setup-pre-commit-hook setup-pre-commit-hook: ln -s -f ../../pre-commit.py .git/hooks/pre-commit + +# Rebuild when any makefile changes +# https://stackoverflow.com/questions/3871444/making-all-rules-depend-on-the-makefile-itself +.EXTRA_PREREQS+=$(foreach mk, ${MAKEFILE_LIST},$(abspath ${mk}))