@@ -260,7 +260,13 @@ ALL_HS := $(filter-out $(S)src/rt/valgrind/valgrind.h \
260
260
,$(ALL_HS ) )
261
261
262
262
# Run the tidy script in multiple parts to avoid huge 'echo' commands
263
- tidy :
263
+ .PHONY : tidy
264
+ tidy : tidy-basic tidy-binaries tidy-errors tidy-features
265
+
266
+ endif
267
+
268
+ .PHONY : tidy-basic
269
+ tidy-basic :
264
270
@$(call E, check: formatting)
265
271
$(Q ) find $(S ) src -name ' *.r[sc]' \
266
272
-and -not -regex ' ^$(S)src/jemalloc.*' \
@@ -286,6 +292,10 @@ tidy:
286
292
| xargs -n 10 $(CFG_PYTHON ) $(S ) src/etc/tidy.py
287
293
$(Q ) echo $(ALL_HS ) \
288
294
| xargs -n 10 $(CFG_PYTHON ) $(S ) src/etc/tidy.py
295
+
296
+ .PHONY : tidy-binaries
297
+ tidy-binaries :
298
+ @$(call E, check: binaries)
289
299
$(Q ) find $(S ) src -type f -perm +a+x \
290
300
-not -name ' *.rs' -and -not -name ' *.py' \
291
301
-and -not -name ' *.sh' \
@@ -300,11 +310,16 @@ tidy:
300
310
| grep ' ^$(S)src/libbacktrace' -v \
301
311
| grep ' ^$(S)src/rust-installer' -v \
302
312
| xargs $(CFG_PYTHON ) $(S ) src/etc/check-binaries.py
303
- $(Q ) $(CFG_PYTHON ) $(S ) src/etc/errorck.py $(S ) src/
304
- $(Q ) $(CFG_PYTHON ) $(S ) src/etc/featureck.py $(S ) src/
305
313
314
+ .PHONY : tidy-errors
315
+ tidy-errors :
316
+ @$(call E, check: extended errors)
317
+ $(Q ) $(CFG_PYTHON ) $(S ) src/etc/errorck.py $(S ) src/
306
318
307
- endif
319
+ .PHONY : tidy-features
320
+ tidy-features :
321
+ @$(call E, check: feature sanity)
322
+ $(Q ) $(CFG_PYTHON ) $(S ) src/etc/featureck.py $(S ) src/
308
323
309
324
310
325
# #####################################################################
0 commit comments