# Makefile for the open-source release of adventure 2.5
-# SPDX-FileCopyrightText: Eric S. Raymond <esr@thyrsus.com>
+# SPDX-FileCopyrightText: (C) Eric S. Raymond <esr@thyrsus.com>
# SPDX-License-Identifier: BSD-2-Clause
# To build with save/resume disabled, pass CFLAGS="-DADVENT_NOSAVE"
check: advent cheat
cd tests; $(MAKE) --quiet
+reflow:
+ @clang-format --style="{IndentWidth: 8, UseTab: ForIndentation}" -i $$(find . -name "*.[ch]")
+ @black --quiet *.py
+
# Requires gcov, lcov, libasan6, and libubsan1
-# The last two are Ubuntu names, might vary onb other distributions.
+# The last two are Ubuntu names, might vary on other distributions.
# After this, run your browser on coverage/open-adventure/index.html
# to see coverage results. Browse coverage/adventure.yaml.html
# to see symbol coverage over the YAML file.
linty: CCFLAGS += -Wpointer-arith
linty: advent cheat
-# These seem to be more modeern options for enabling coverage testing.
+# These seem to be more modern options for enabling coverage testing.
# Documenting them here in case a future version bump disables --coverage.
#debug: CCFLAGS += -ftest-coverage
#debug: CCFLAGS += -fprofile-arcs