-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (44 loc) · 2.26 KB
/
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
57
58
59
60
61
62
63
64
65
66
.PHONY: all clean
all: database
database: src/Setup/Database.hs csv/learnsets.csv csv/natures.csv csv/legalities.csv csv/evolutions.csv csv/aliases.csv
cabal run apripsql -- --command database
csv/egg-groups.csv: src/Setup/EggGroup.hs
cabal run apripsql -- --command egg-groups
csv/types.csv: src/Setup/Type.hs
cabal run apripsql -- --command types
csv/move-categories.csv: src/Setup/MoveCategory.hs
cabal run apripsql -- --command move-categories
csv/gender-ratios.csv: src/Setup/GenderRatio.hs
cabal run apripsql -- --command gender-ratios
csv/games.csv: src/Setup/Game.hs
cabal run apripsql -- --command games
csv/learn-methods.csv: src/Setup/LearnMethod.hs
cabal run apripsql -- --command learn-methods
csv/abilities.csv: src/Setup/Ability.hs
cabal run apripsql -- --command abilities
csv/pokemon-raw.csv: src/Setup/RawPokemon.hs
cabal run apripsql -- --command pokemon-raw
csv/pokemon.csv: src/Setup/Pokemon.hs csv/pokemon-raw.csv csv/egg-groups.csv csv/types.csv csv/gender-ratios.csv csv/abilities.csv
cabal run apripsql -- --command pokemon
csv/aliases.csv: src/Setup/Alias.hs csv/pokemon.csv static/aliases.csv
cabal run apripsql -- --command aliases
csv/moves-raw.csv: src/Setup/RawMove.hs
cabal run apripsql -- --command moves-raw
csv/moves.csv: src/Setup/Move.hs csv/moves-raw.csv csv/types.csv csv/move-categories.csv
cabal run apripsql -- --command moves
csv/learnsets-raw.csv: src/Setup/RawLearnset.hs
cabal run apripsql -- --command learnsets-raw
csv/learnsets-suppl.csv: src/Setup/SupplementaryLearnset.hs csv/pokemon.csv
cabal run apripsql -- --command learnsets-suppl
csv/learnsets.csv: src/Setup/Learnset.hs csv/learnsets-raw.csv csv/moves.csv csv/learn-methods.csv csv/pokemon.csv csv/games.csv csv/learnsets-suppl.csv
cabal run apripsql -- --command learnsets
csv/natures.csv: src/Setup/Nature.hs csv/pokemon.csv static/natures-raw.csv
cabal run apripsql -- --command natures
csv/legalities.csv: src/Setup/Legality.hs csv/pokemon.csv static/legalities-raw.csv
cabal run apripsql -- --command legalities
csv/evolutions-raw.csv: src/Setup/RawEvolution.hs
cabal run apripsql -- --command evolutions-raw
csv/evolutions.csv: src/Setup/Evolution.hs csv/evolutions-raw.csv csv/pokemon.csv
cabal run apripsql -- --command evolutions
clean:
rm -f csv/*.csv