Skip to content

Commit

Permalink
Makefile: add make regen
Browse files Browse the repository at this point in the history
  • Loading branch information
rasky committed Oct 4, 2024
1 parent b2322fe commit cb92851
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ clean:
rm -f *.o *.a
rm -rf $(CURDIR)/build

regen:
# Regenerate generated files that are committed. If they are changed, they will
# be marked as modified in git.
cd $(SOURCE_DIR)/rdpq && ./mkfontbuiltin.sh

test:
$(MAKE) -C tests

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ JOBS="${JOBS:-1}" # If getconf returned nothing, default to 1
# Clean, build, and install libdragon + tools
sudoMakeWithParams install-mk
makeWithParams clobber
makeWithParams libdragon tools
makeWithParams libdragon tools regen
sudoMakeWithParams install tools-install

# Build examples and tests - libdragon must be already installed at this point,
Expand Down
2 changes: 1 addition & 1 deletion src/rdpq/mkfontbuiltin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ BUILTIN="monogram at01"

rm -f rdpq_font_builtin.c
for font in $BUILTIN; do
$N64_INST/bin/mkfont -v --compress 0 --output $TMPDIR --range 20-BF --outline 1 "$FONTDB/$font.ttf"
"$N64_INST/bin/mkfont" --compress 0 --output $TMPDIR --range 20-BF --outline 1 "$@" "$FONTDB/$font.ttf"
xxd -i -n __fontdb_$font $TMPDIR/$font.font64 >>rdpq_font_builtin.c
done

0 comments on commit cb92851

Please sign in to comment.