aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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