aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2024-07-24 15:31:02 -0500
committerjvech <jmvalenciae@unal.edu.co>2024-07-24 15:31:02 -0500
commitd45581c0b067b9526ce88ba9d3a1bd861f4ff7cc (patch)
treea907346b2b282437537d7f4f6b138b3efddcce22 /Makefile
parentb9deaf6ec1ba587f2b81a63c75b696c6def33436 (diff)
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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
Feel free to download, copy and edit any repo