subdir('systemd')
endif
-prog_reformat = find_program('astyle', native: true, required: false)
-if prog_reformat.found()
- run_target('reformat', command: [
- prog_reformat,
- '--options=@SOURCE_ROOT@/.astylerc', '--recursive',
- '@SOURCE_ROOT@/*.c', '@SOURCE_ROOT@/*.h',
- ])
-endif
-
+run_target('reformat', command: [
+ python,
+ '@SOURCE_ROOT@/lint.py',
+ '--fix',
+])
+
+run_target('lint', command: [
+ python,
+ '@SOURCE_ROOT@/lint.py',
+])