diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 5af21422..973fdcb8 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -17,7 +17,7 @@ jobs:
         run: sudo apt-get install indent
 
       - name: indent
-        run: make indent
+        run: make indent-c
 
       - name: check formatting
         run: git diff --exit-code
diff --git a/Makefile b/Makefile
index a031440c..a04184a5 100644
--- a/Makefile
+++ b/Makefile
@@ -92,8 +92,12 @@ util/util: $(UTIL_OBJECTS)
 dracut-util: util/util
 	cp -a $< $@
 
-indent:
+.PHONY: indent-c
+indent-c:
 	indent -i8 -nut -br -linux -l120 $(wildcard *.[ch] */*.[ch])
+
+.PHONY: indent
+indent: indent-c
 ifeq ($(HAVE_SHFMT),yes)
 	shfmt -w -s .
 endif