Skip to content

Commit

Permalink
add make rules for simavr-tests to automatically create makefiles/links
Browse files Browse the repository at this point in the history
  • Loading branch information
gin66 committed Apr 28, 2024
1 parent da0c2a1 commit 19e6dfe
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions extras/tests/simavr_based/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,21 @@ pmf:
externalCall:
make -C test_externalCall

%/.tested: $(SRC) run_avr %/expect.txt %/platformio.ini
%/.tested: $(SRC) run_avr %/expect.txt %/platformio.ini .makefiles .links
make SILENCE=$(SILENCE) -C $(dir $@)

.makefiles: makefiles

makefiles: $(addsuffix /Makefile,$(TESTS))
touch .makefiles

%/Makefile:
cd $(dir $@); ln -s ../Makefile.test Makefile

.links: links

links: $(SD_SRC_DIRS)
touch .links

%/src/.dir:
mkdir -p $(dir $@)
Expand Down Expand Up @@ -82,5 +88,5 @@ clean:
rm -fR */.pio */.tested */x.vcd */result.txt
find . -type l -delete
find . -type d -empty -delete
make links makefiles
rm .links .makefiles

0 comments on commit 19e6dfe

Please sign in to comment.