Makefile to build tools.

This commit is contained in:
laqieer 2022-08-06 23:57:07 +08:00
parent 8b5b7bc032
commit 33d1d5da96
3 changed files with 17 additions and 6 deletions

View File

@ -1,7 +1,2 @@
#!/bin/sh
make -C tools/gbagfx
make -C tools/scaninc
make -C tools/bin2c
make -C tools/aif2pcm
make -C tools/mid2agb
make -C tools/textencode
make -f make_tools.mk

2
clean_tools.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
make clean -f make_tools.mk

14
make_tools.mk Normal file
View File

@ -0,0 +1,14 @@
MAKEFLAGS += --no-print-directory
TOOLDIRS := $(filter-out tools/agbcc,$(wildcard tools/*))
.PHONY: all $(TOOLDIRS) clean
all: $(TOOLDIRS)
$(TOOLDIRS):
@$(MAKE) -C $@
clean:
@$(foreach tooldir,$(TOOLDIRS),$(MAKE) clean -C $(tooldir);)