Commits

Anonymous committed e5ac497

Fix the last commit.

  • Participants
  • Parent commits a691f68

Comments (0)

Files changed (2)

 T2_CSS_TARGETS = $(patsubst %,$(T2_DEST)/%,$(GEN_STYLE_CSS_FILES))
 VIPE_CSS_TARGETS = $(patsubst %,$(VIPE_DEST)/%,$(GEN_STYLE_CSS_FILES))
 
+CSS_GEN_SCRIPT = bin/gen-css.pl
+
+CSS_TARGETS_COMMON_DEPS = $(TTMLS_COMMON_DEPS) $(CSS_GEN_SCRIPT)
+
 css_targets: $(T2_CSS_TARGETS) $(VIPE_CSS_TARGETS)
 
-$(T2_CSS_TARGETS) : $(T2_DEST)/% : lib/%.ttml $(TTMLS_COMMON_DEPS)
-	perl bin/gen-css.pl -o $@ $(T2_TTML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(T2_DEST)/%,%,$(patsubst %.ttml,%,$@)) $<
+$(T2_CSS_TARGETS) : $(T2_DEST)/% : lib/%.ttml $(CSS_TARGETS_COMMON_DEPS)
+	perl $(CSS_GEN_SCRIPT) -o $@ $(T2_TTML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(T2_DEST)/%,%,$(patsubst %.ttml,%,$@)) $<
 
-$(VIPE_CSS_TARGETS) : $(VIPE_DEST)/% : lib/%.ttml $(TTMLS_COMMON_DEPS)
-	perl bin/gen-css.pl -o $@ $(VIPE_TTML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(VIPE_DEST)/%,%,$(patsubst %.ttml,%,$@)) $<
+$(VIPE_CSS_TARGETS) : $(VIPE_DEST)/% : lib/%.ttml $(CSS_TARGETS_COMMON_DEPS)
+	perl $(CSS_GEN_SCRIPT) -o $@ $(VIPE_TTML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(VIPE_DEST)/%,%,$(patsubst %.ttml,%,$@)) $<
 
 use warnings;
 use strict;
 
-use base 'Template::Preprocessor::TTML::Base';
+use base 'Class::Accessor';
 
 use Template;
 use Template::Preprocessor::TTML::CmdLineProc;
 
 =head1 FUNCTIONS
 
-=head2 initialize()
-
-Internal function for initializing the object.
-
 =cut
 
-sub initialize
-{
-    my $self = shift;
-    my %args = (@_);
-    $self->argv([@{$args{'argv'}}]);
-
-    return 0;
-}
-
 =head2 run
 
 Performs the processing.
 
 package main;
 
-Template::Preprocessor::TTML->new('argv' => [@ARGV])->run();
+Template::Preprocessor::TTML->new({'argv' => [@ARGV]})->run();