summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-01-05 18:24:03 +0100
committerEugen Wissner <belka@caraus.de>2026-01-05 18:24:03 +0100
commite4257b08beeb9279e02cb2a50deec4ad8a7c4135 (patch)
tree33e8b4c474fcea02c193ea752fe2bad7520825fc /Rakefile
parent955161b36e9525d7b5ab5fa053c9caf16746a354 (diff)
downloadelna-e4257b08beeb9279e02cb2a50deec4ad8a7c4135.tar.gz
Allow enumeration field types
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 1f175f8..d35b267 100644
--- a/Rakefile
+++ b/Rakefile
@@ -25,11 +25,10 @@ task default: :boot
desc 'Final stage'
task boot: "build/valid/#{STAGES.last}/cl"
-task boot: "build/valid/#{STAGES.last}/cl.s"
task boot: "boot/#{STAGES.last}/cl.elna" do |t|
groupped = t.prerequisites.group_by { |stage| File.extname stage }.transform_values(&:first)
exe = groupped['']
- expected = groupped['.s']
+ expected = groupped[''] + '.s'
source = groupped['.elna']
cat_arguments = ['cat', source]
@@ -46,6 +45,10 @@ task :convert do
end
end
+file "build/valid/#{STAGES.last}/cl" => 'build/build.ninja' do |t|
+ sh 'ninja', '-f', t.prerequisites.first
+end
+
file 'build/build.ninja' => ['build'] do |t|
File.open t.name, 'w' do |f|
f << <<~NINJA