From 341a669921023845ec55dd1f3c8738d16f37d3ec Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Tue, 30 May 2023 15:23:26 -0300 Subject: feat Create 2D animations * Rakefile: Add subfolders to the lib directory. * lib/animation/discrete.rb: Create a class for discrete animations. This class needs tests. * lib/animation/frame_2d.rb: Create a 2D frame to be used with discrete animations --- Rakefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index c2e67d2..042eac2 100644 --- a/Rakefile +++ b/Rakefile @@ -40,7 +40,7 @@ CPP_FILES = FileList[ CPP_OBJS = CPP_FILES.ext('.o') RB_LIBS = FileList[ - 'lib/*.rb' + 'lib/**/*.rb' ] GLSL_FILES = FileList[ @@ -160,7 +160,11 @@ task install: :build do # Install libs `install -d #{destdir}#{DATA_DIR}/lib` - RB_LIBS.each {`install #{_1} #{destdir}#{DATA_DIR}/lib`} + RB_LIBS.each do |path| + subdir = /(\/[[:alnum:]]+)\//.match(path)&.captures&.at(0) + `install -d #{destdir}#{DATA_DIR}/lib#{subdir}` unless subdir.nil? + `install #{path} #{destdir}#{DATA_DIR}/lib#{subdir}` + end end task default: %[build] -- cgit v1.2.3