forked from mame/quine-relay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
67 lines (53 loc) · 1.34 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
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 lazyk-boot.dat blc-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 "../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 "../.travis.yml" => ["dot.travis.yml.gen.rb", *LIBS] do
ruby "dot.travis.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
../.travis.yml
../Dockerfile
)
task "../SHA1SUMS" => ["SHA1SUMS.gen.rb", *LIBS] do
ruby "SHA1SUMS.gen.rb"
end