Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a indent rule to format the code in an uniform way, avoiding breaking the branche...
[simgrid.git] / Makefile.am
index b054fef..f3781b5 100644 (file)
@@ -79,6 +79,12 @@ publish: dist
         cp ChangeLog ~/public_html/simgrid2/
         $(MAKE) -C ~/public_html
 
+indent:
+       indent -br -brs -ce -bbo -bap --dont-break-procedure-type \
+       --no-tabs --cuddle-do-while --cuddle-else --indent-level2 \
+       --leave-preprocessor-space --no-space-after-function-call-names \
+       `$(MAKE) dist-files | grep '\.[ch]$$'|grep -v '/_' |grep -v '_unit.c'`
+
 sync-gforge: 
        chmod g+rw -R doc/
        chmod a+rX -R doc/