aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-01-29 23:52:13 +0100
committerThomas White <taw@physics.org>2019-05-16 15:15:49 +0200
commitfdf62472755ff9e2aa0f234e3317d8ff2e709938 (patch)
tree36a918ab77b85e96e18e8eb64a059fbab1558927
parente2f8c013d9f0d828b96e1c4aadccd18e545aed66 (diff)
Stuff for quote_fmt_lex.l
-rw-r--r--meson.build10
-rw-r--r--src/quote_fmt_lex.l1
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"
%%