git.fiddlerwoaroof.com
Browse code

make target for formatting

Greg Wiley authored on 19/04/2017 17:31:34
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,6 @@
1
+This project uses Artistic Style (astyle) for formatting. The configuration
2
+file is `astylerc`.
3
+
4
+`make format` runs the style program with the configuration
5
+
6
+
... ...
@@ -53,3 +53,8 @@ else
53 53
 	@echo installation recipe not known for $(UNAME_S)
54 54
 endif
55 55
 
56
+.PHONY: format
57
+format:
58
+	@astyle --options=astylerc *.cc *.h
59
+
60
+