From fdf62472755ff9e2aa0f234e3317d8ff2e709938 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 29 Jan 2019 23:52:13 +0100 Subject: Stuff for quote_fmt_lex.l --- meson.build | 10 ++++++---- src/quote_fmt_lex.l | 1 - 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index dac174e9..9103ada4 100644 --- a/meson.build +++ b/meson.build @@ -135,10 +135,12 @@ libsylph_dep = declare_dependency(include_directories : libsylph_includes, flex = find_program('flex') -quote_fmt_lex_c = custom_target('quote_fmt_lex', - output : 'quote_fmt_lex.c', - input : 'src/quote_fmt_lex.l', - command : [flex, '-o', '@OUTPUT@', '@INPUT@']) +lgen = generator(flex, output : ['@BASENAME@.c', '@BASENAME@.h'], + arguments : ['-o', '@OUTPUT0@', + '--header-file=@OUTPUT1@', + '@INPUT@']) + +quote_fmt_lex_c = lgen.process('src/quote_fmt_lex.l') executable('sylpheed', ['src/about.c', diff --git a/src/quote_fmt_lex.l b/src/quote_fmt_lex.l index 7f904c17..578ea149 100644 --- a/src/quote_fmt_lex.l +++ b/src/quote_fmt_lex.l @@ -4,7 +4,6 @@ %} %option prefix="quote_fmt" -%option outfile="lex.yy.c" %% -- cgit v1.2.3