aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorevuez <julien@mulga.net>2024-04-03 22:43:16 +0200
committerevuez <julien@mulga.net>2024-04-03 22:43:16 +0200
commit43e1a12b5bce11b4a28a53acca243e35c2be6d3e (patch)
tree07d64823718bfee063ab7b3d5721ac1e950ae17c /Makefile
downloadcarton-43e1a12b5bce11b4a28a53acca243e35c2be6d3e.tar.gz
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f059b3c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+.PHONY: help
+help: # HELP: This output
+ @awk -F: '/HELP: [A-Za-z]/{print "\033[1m" $$1 "\033[0m:" $$3}' Makefile
+
+.PHONY: dbg.reset
+dbg.reset: # HELP: Empties the blobs directory and removes all the objects
+ rm -r test-v2/blobs/*
+ sqlite3 test-v2/cache/index.sqlite3 'delete from objects;'
+
+.PHONY: dbg.objects-count
+dbg.objects-count: # HELP: Shows the number of objects records
+ @sqlite3 test-v2/cache/index.sqlite3 'select count(*) from objects;'