diff options
-rw-r--r-- | meson.build | 10 | ||||
-rw-r--r-- | 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" %% |