Skip to content

Commit 359b90d

Browse files
committed
makefile: add some explanations
1 parent 4bee70b commit 359b90d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,28 @@ reset-psql:
55
docker volume rm homebrewhub_postgres -f
66
docker compose up
77

8+
# Pull updates from the three database repositories
89
update-db:
910
cd db-sources/database-gb && git pull
1011
cd db-sources/database-gba && git pull
1112
cd db-sources/database-nes && git pull
1213

14+
# Sync the internal postgres database with the game databases
1315
sync-db:
1416
docker exec hh_api python manage.py runscript sync_db
1517

18+
# Re-init the database sources
1619
init-db:
1720
rm -rf db-sources
1821
mkdir db-sources
1922
git clone https://github.com/gbdev/database.git db-sources/database-gb
2023
git clone https://github.com/gbadev-org/games.git db-sources/database-gba
2124
git clone https://github.com/nesdev-org/homebrew-db.git db-sources/database-nes
2225

26+
# Spawn a shell in the django container
2327
shell:
2428
docker exec -it hh_api bash
2529

30+
# Pull gbtoolsid so it can be used in the sync-db
2631
prepare-gbtid:
27-
cd scripts && wget https://github.com/bbbbbr/gbtoolsid/releases/download/v1.5.0/gbtoolsid_linux.zip && unzip gbtoolsid_linux.zip
32+
cd scripts && wget https://github.com/bbbbbr/gbtoolsid/releases/download/v1.5.0/gbtoolsid_linux.zip && unzip gbtoolsid_linux.zip

0 commit comments

Comments
 (0)