lahmanlite/Makefile

80 lines
5.2 KiB
Makefile
Raw Normal View History

2024-01-25 05:44:50 +00:00
.PHONY: db
bbdb = baseballdatabank-2023.1
db: baseball.db
2024-01-28 00:05:45 +00:00
baseball.db: baseball-transformed.db sql/load.sql
2024-01-25 05:44:50 +00:00
rm -f baseball.db
2024-01-28 00:05:45 +00:00
cat sql/load.sql | sqlite3 baseball.db
2024-01-26 01:34:10 +00:00
sqlite3 baseball.db "VACUUM"
2024-01-27 22:42:08 +00:00
2024-01-30 02:34:07 +00:00
baseball-transformed.db: baseball-raw.db sql/awards.sql sql/franchises.sql sql/teamseasons.sql sql/seasons.sql sql/parks.sql sql/collegeplaying.sql sql/schools.sql sql/people.sql sql/salaries.sql sql/batting.sql sql/pitching.sql sql/fielding.sql sql/appearances.sql sql/homegames.sql sql/seriespost.sql sql/fieldingofsplit.sql sql/teams.sql sql/leagues.sql sql/managers.sql sql/awardsmanagers.sql sql/battingpost.sql sql/fieldingpost.sql sql/pitchingpost.sql sql/appearancespost.sql sql/awardsshareplayers.sql sql/yearlyawards.sql sql/halloffame.sql sql/halloffamereqs.sql sql/awardsplayers.sql sql/parkaliases.sql sql/teamseasonshalf.sql sql/managershalf.sql sql/allstarstartingpos.sql sql/allstars.sql sql/allstargames.sql
2024-01-28 00:05:45 +00:00
rm -f baseball-transformed.db
cp baseball-raw.db baseball-transformed.db
cat sql/franchises.sql | sqlite3 baseball-transformed.db
2024-01-28 03:45:23 +00:00
cat sql/teamseasons.sql | sqlite3 baseball-transformed.db
2024-01-28 00:05:45 +00:00
cat sql/awards.sql | sqlite3 baseball-transformed.db
cat sql/seasons.sql | sqlite3 baseball-transformed.db
2024-01-28 00:59:05 +00:00
cat sql/parks.sql | sqlite3 baseball-transformed.db
2024-01-28 01:14:33 +00:00
cat sql/collegeplaying.sql | sqlite3 baseball-transformed.db
2024-01-28 01:27:51 +00:00
cat sql/schools.sql | sqlite3 baseball-transformed.db
2024-01-28 01:46:42 +00:00
cat sql/salaries.sql | sqlite3 baseball-transformed.db
2024-01-28 01:59:00 +00:00
cat sql/batting.sql | sqlite3 baseball-transformed.db
cat sql/pitching.sql | sqlite3 baseball-transformed.db
cat sql/fielding.sql | sqlite3 baseball-transformed.db
2024-01-28 02:05:47 +00:00
cat sql/appearances.sql | sqlite3 baseball-transformed.db
2024-01-28 02:13:16 +00:00
cat sql/homegames.sql | sqlite3 baseball-transformed.db
cat sql/people.sql | sqlite3 baseball-transformed.db
2024-01-28 02:19:54 +00:00
cat sql/seriespost.sql | sqlite3 baseball-transformed.db
2024-01-28 02:25:09 +00:00
cat sql/fieldingofsplit.sql | sqlite3 baseball-transformed.db
2024-01-28 03:41:23 +00:00
cat sql/teams.sql | sqlite3 baseball-transformed.db
2024-01-28 03:48:57 +00:00
cat sql/leagues.sql | sqlite3 baseball-transformed.db
2024-01-28 05:14:56 +00:00
cat sql/managers.sql | sqlite3 baseball-transformed.db
2024-01-28 05:29:53 +00:00
cat sql/awardsmanagers.sql | sqlite3 baseball-transformed.db
2024-01-28 06:09:06 +00:00
cat sql/fieldingpost.sql | sqlite3 baseball-transformed.db
cat sql/battingpost.sql | sqlite3 baseball-transformed.db
cat sql/pitchingpost.sql | sqlite3 baseball-transformed.db
cat sql/appearancespost.sql | sqlite3 baseball-transformed.db
2024-01-28 18:41:26 +00:00
cat sql/awardsshareplayers.sql | sqlite3 baseball-transformed.db
2024-01-28 19:02:38 +00:00
cat sql/yearlyawards.sql | sqlite3 baseball-transformed.db
2024-01-29 01:07:59 +00:00
cat sql/halloffame.sql | sqlite3 baseball-transformed.db
cat sql/halloffamereqs.sql | sqlite3 baseball-transformed.db
2024-01-29 01:16:57 +00:00
cat sql/awardsplayers.sql | sqlite3 baseball-transformed.db
cat sql/parkaliases.sql | sqlite3 baseball-transformed.db
2024-01-30 01:48:17 +00:00
cat sql/teamseasonshalf.sql | sqlite3 baseball-transformed.db
2024-01-30 01:59:41 +00:00
cat sql/managershalf.sql | sqlite3 baseball-transformed.db
2024-01-30 02:34:07 +00:00
cat sql/allstarstartingpos.sql | sqlite3 baseball-transformed.db
cat sql/allstars.sql | sqlite3 baseball-transformed.db
cat sql/allstargames.sql | sqlite3 baseball-transformed.db
2024-01-28 00:05:45 +00:00
2024-01-27 22:42:08 +00:00
baseball-raw.db:
rm -f baseball-raw.db
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/AllstarFull.csv allstarfull"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/Appearances.csv appearances"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/Batting.csv batting"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/BattingPost.csv battingpost"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/Fielding.csv fielding"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/FieldingOF.csv fieldingof"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/FieldingOFsplit.csv fieldingofsplit"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/FieldingPost.csv fieldingpost"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/HomeGames.csv homegames"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/Managers.csv managers"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/ManagersHalf.csv managershalf"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/Parks.csv parks"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/People.csv people"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/Pitching.csv pitching"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/PitchingPost.csv pitchingpost"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/SeriesPost.csv seriespost"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/Teams.csv teams"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/TeamsFranchises.csv teamsfranchises"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/core/TeamsHalf.csv teamshalf"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/contrib/AwardsManagers.csv awardsmanagers"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/contrib/AwardsPlayers.csv awardsplayers"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/contrib/AwardsShareManagers.csv awardssharemanagers"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/contrib/AwardsSharePlayers.csv awardsshareplayers"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/contrib/CollegePlaying.csv collegeplaying"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/contrib/HallOfFame.csv halloffame"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/contrib/Salaries.csv salaries"
sqlite3 baseball-raw.db ".import --csv $(bbdb)/contrib/Schools.csv schools"