]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: splitout indent-c from indent
authorHarald Hoyer <harald@redhat.com>
Fri, 12 Mar 2021 09:33:23 +0000 (10:33 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 15 Mar 2021 14:37:08 +0000 (15:37 +0100)
... to be able to call it from CI

.github/workflows/lint.yml
Makefile

index 5af21422d4b045e57c37b711bf7b2425822dc352..973fdcb82857154572904f6c3b29ae2e7dec534c 100644 (file)
@@ -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
index a031440c25591c411b696fc7cf72b3e8a5c3ddcf..a04184a5665334c71ff72868c2a3b0936c331787 100644 (file)
--- 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