]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - include.mk
ast_binary->right_first and an execution order check
[xonotic/gmqcc.git] / include.mk
index a1d7430edb961b56ec34c34e7b485965817691c6..30372896beaae36558e9daa169d22f7f7b36e2fe 100644 (file)
@@ -107,3 +107,14 @@ uninstall:
        rm -f $(DESTDIR)$(MANDIR)/man1/doc/gmqcc.1
        rm -f $(DESTDIR)$(MANDIR)/man1/doc/qcvm.1
        rm -f $(DESTDIR)$(MANDIR)/man1/doc/gmqpak.1
+
+STYLE_MATCH = \( -name '*.[ch]' -or -name '*.def' \)
+
+whitespace:
+       find . -type f $(STYLE_MATCH) -exec sed -i 's/ *$$//' '{}' ';'
+newline:
+       find . -type f $(STYLE_MATCH) -exec sed -i -e '$$a\' '{}' ';'
+indent:
+       find . -type f $(STYLE_MATCH) -exec sed -i 's/\t/    /g' '{}' ';'
+
+style: whitespace newline indent