]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - include.mk
Constant fold intrinsics if their arguments are constant. TODO: reference count intri...
[xonotic/gmqcc.git] / include.mk
index 7624473d886f8b146e144068a74e6acc6790c508..20ffdd48aad6b4eafb5569fcf50e56a8fc0110f4 100644 (file)
@@ -95,7 +95,7 @@ SPLINTFLAGS =                 \
     -abstract                 \
     -statictrans              \
     -castfcnptr
-    
+
 #always the right rule
 default: all
 
@@ -108,9 +108,13 @@ uninstall:
        rm -f $(DESTDIR)$(MANDIR)/man1/doc/qcvm.1
        rm -f $(DESTDIR)$(MANDIR)/man1/doc/gmqpak.1
 
-whitespace:
-       find . -type f \( -name '*.[ch]' -or -name '*.def' \) -exec sed -i 's/ *$$//' '{}' ';'
+STYLE_MATCH = \( -name '*.[ch]' -or -name '*.def' -or -name '*.qc' \)
 
+whitespace:
+       find . -type f $(STYLE_MATCH) -exec sed -i 's/ *$$//' '{}' ';'
 newline:
-       find . -type f \( -name '*.[ch]' -or -name '*.def' \) -exec sed -i -e '$$a\' '{}' ';'
+       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