Use git clean -fdx instead of make clean in external projects

This commit is contained in:
Rangi
2026-07-05 20:58:50 -04:00
committed by Rangi
parent 6e643406a2
commit f81f5fe63c
2 changed files with 6 additions and 7 deletions
+5 -6
View File
@@ -232,16 +232,15 @@ Each one is a binary RNG file which is passed to the `rgbgfx_test` program.
Each `.cfg` file corresponds to one test. Each `.cfg` file corresponds to one test.
Each one defines the parameters for a real external project that builds using RGBDS. Each one defines the parameters for a real external project that builds using RGBDS.
1. Make sure the downstream project supports 1. Ensure that the downstream project supports a `RGBDS` variable to build with
a non-system copy of RGBDS in some directory, i.e.
<code>make <var>&lt;target&gt;</var> RGBDS=<var>&lt;path/to/rgbds/&gt;</var></code>. <code>make <var>&lt;target&gt;</var> RGBDS=<var>&lt;path/to/rgbds/&gt;</var></code>.
While the test suite supports any Make target name, only Only [GNU Make](https://www.gnu.org/software/make/) is currently supported.
[Make](//gnu.org/software/make) is currently supported, and the Makefile must
support a `RGBDS` variable to use a non-system RGBDS directory.
2. Create the new `.cfg` file, following the existing ones. 2. Create the new `.cfg` file, following the existing ones.
If an external project does not support `make RGBDS=`, or otherwise fails to If an external project does not support `make RGBDS=`, or otherwise fails to
build with current RGBDS, then then you can edit the project to build correctly, build with current RGBDS, then you can edit the project to build correctly, and
and create a patch with `git diff` to be committed as create a patch with `git diff` to be committed as
<code>test/external/patches/<var>&lt;project&gt;</var>.patch</code>. <code>test/external/patches/<var>&lt;project&gt;</var>.patch</code>.
## Container images ## Container images
+1 -1
View File
@@ -22,7 +22,7 @@ if ! cd "$EXT_TEST_REPO"; then
fi fi
RGBDS_PATH="RGBDS=../../../" RGBDS_PATH="RGBDS=../../../"
make clean $RGBDS_PATH git clean -fdx # Clean any previous build products so `make` rebuilds everything from scratch.
make -j4 "$EXT_TEST_TARGET" $RGBDS_PATH make -j4 "$EXT_TEST_TARGET" $RGBDS_PATH
hash="$(sha1sum -b "$EXT_TEST_FILE" | head -c 40)" hash="$(sha1sum -b "$EXT_TEST_FILE" | head -c 40)"