forked from mame/quine-relay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
77 lines (60 loc) · 1.6 KB
/
Rakefile
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
67
68
69
70
71
72
73
74
75
76
77
require "rake/clean"
CLEAN.include("../QR.*")
CLEAN.include("../qr.*")
CLEAN.include("../QR$*")
CLEAN.include("../QR")
CLEAN.include("../qr")
CLEAN.include("../QR2.rb")
CLEAN.include("../README.md")
CLEAN.include("../langs.png")
CLEAN.include("../Makefile")
LIBS = %w(code-gen.rb code-gen-pool.rb lazyk-boot.dat blc-boot.dat grass-boot.dat)
file "lazyk-boot.dat" => "lazyk-boot.dat.gen.rb" do
ruby "lazyk-boot.dat.gen.rb"
end
file "blc-boot.dat" => "blc-boot.dat.gen.rb" do
ruby "blc-boot.dat.gen.rb"
end
file "grass-boot.dat" => "grass-boot.dat.gen.rb" do
ruby "grass-boot.dat.gen.rb"
end
file "../QR.rb" => ["QR.rb.gen.rb", *LIBS, "uroboros.txt"] do
ruby "QR.rb.gen.rb"
end
file "../README.md" => ["README.md.gen.rb", *LIBS] do
ruby "README.md.gen.rb"
end
file "../langs.png" => ["langs.png.gen.rb", "uroboros.svg", *LIBS] do
ruby "langs.png.gen.rb"
end
file "../thumbnail.png" => ["thumbnail.png.gen.rb", "../QR.rb"] do
ruby "thumbnail.png.gen.rb"
end
file "../Makefile" => ["Makefile.gen.rb", *LIBS] do
ruby "Makefile.gen.rb"
end
file "../.github/workflows/main.yml" => ["dot.github.workflows.main.yml.gen.rb", *LIBS] do
ruby "dot.github.workflows.main.yml.gen.rb"
end
file "../Dockerfile" => ["Dockerfile.gen.rb", *LIBS] do
ruby "Dockerfile.gen.rb"
end
task :test do
ruby "test.rb"
end
task :default => %w(
../QR.rb
../README.md
../langs.png
../thumbnail.png
../Makefile
../.github/workflows/main.yml
../Dockerfile
)
task "../SHA1SUMS" => ["SHA1SUMS.gen.rb", *LIBS] do
ruby "SHA1SUMS.gen.rb"
end
task :run => :default do
sh "make -C .."
end
task :gen => [:run, "../SHA1SUMS"]