-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
57 lines (40 loc) · 961 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
############
### main ###
############
scrape:
poetry run python libgen_torrent_cardiography/mgmt.py scrape output
# Merge main db file with wal
sqlite3 data/ltc.sqlite VACUUM;
populate:
poetry run python libgen_torrent_cardiography/mgmt.py populate
# Merge main db file with wal
sqlite3 data/ltc.sqlite VACUUM;
.PHONY: output
output:
poetry run python libgen_torrent_cardiography/mgmt.py output
info:
poetry run python libgen_torrent_cardiography/mgmt.py info
#################
### db things ###
#################
rm_mgmt_db:
rm data/ltc.sqlite || true
restart: rm_mgmt_db populate
dbinfo:
bash tools/dbinfo.sh
dbdump:
bash tools/dbdump.sh
####################
### setup things ###
####################
env:
poetry install
##################
### dev things ###
##################
dev_info:
poetry run python examples/info.py
dev_lbt:
poetry run python examples/lbt_info.py
dev_peers:
poetry run python examples/fetch_peers.py