From d45581c0b067b9526ce88ba9d3a1bd861f4ff7cc Mon Sep 17 00:00:00 2001 From: jvech Date: Wed, 24 Jul 2024 15:31:02 -0500 Subject: add: file_read() and format integraded on main program things implemented: - read output in false bug was solved. - Make generic rule added to build test executables - format option added to the CLI --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4521115..7ca4091 100644 --- a/Makefile +++ b/Makefile @@ -48,9 +48,12 @@ run: build @jq -r '.[] | [values[] as $$val | $$val] | @tsv' data/sample_data.json > data/sample_data.tsv @gnuplot utils/plot.gpi +test_%: src/%.c $(OBJDIR) + $(shell sed -n 's/.*compile: clang/clang/;/clang/p' $<) + debug: build gdb -x utils/commands.gdb --tui --args ${BIN} train data/xor.json -e 100 @#gdb -x utils/commands.gdb --tui --args ${BIN} predict data/sample_data.json clean: - @rm $(OBJS) $(OBJDIR) -rv + @rm $(OBJDIR) -rv -- cgit v1.2.3-70-g09d2