Don't put the --recursive option in .astylerc.
[tinc] / meson.build
index 9f55c9e..38062a9 100644 (file)
@@ -34,6 +34,10 @@ os_name = host_machine.system()
 cc_name = cc.get_id()
 
 cc_defs = ['-D_GNU_SOURCE']
+if os_name == 'sunos'
+  cc_defs += '-D__EXTENSIONS__'
+endif
+
 cc_flags = [cc_defs]
 ld_flags = []
 
@@ -117,7 +121,7 @@ prog_reformat = find_program('astyle', native: true, required: false)
 if prog_reformat.found()
   run_target('reformat', command: [
     prog_reformat,
-    '--options=@SOURCE_ROOT@/.astylerc',
+    '--options=@SOURCE_ROOT@/.astylerc', '--recursive',
     '@SOURCE_ROOT@/*.c', '@SOURCE_ROOT@/*.h',
   ])
 endif