From 63ed3ee677a5683accf8409ac53f4aae3e80a0de Mon Sep 17 00:00:00 2001 From: Suresh Sundriyal <247110+sureshsundriyal@users.noreply.github.com> Date: Tue, 22 Sep 2020 13:50:37 -0700 Subject: [PATCH] [dist] Prevent distributing built sources --- src/Makefile.am | 13 ++++++------- test/Makefile.am | 3 ++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index bf18a477..1b2468b1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -225,6 +225,7 @@ BUILT_SOURCES = \ help-txt.c \ init-sql.h \ init-sql.c \ + time_fmts.cc \ xterm-palette-json.h \ xterm-palette-json.c @@ -426,7 +427,6 @@ libdiag_a_SOURCES = \ textfile_highlighters.cc \ textview_curses.cc \ time-extension-functions.cc \ - time_fmts.cc \ view_curses.cc \ view_helpers.cc \ views_vtab.cc \ @@ -440,10 +440,11 @@ TEXT2C_FILES = \ ansi-palette-json.o \ builtin-scripts.o \ builtin-sh-scripts.o \ - help-txt.o \ - init-sql.o \ default-config.o \ default-formats.o \ + help-txt.o \ + init-sql.o \ + time_fmts.o \ xterm-palette-json.o lnav_SOURCES = lnav.cc @@ -463,7 +464,7 @@ ptimec$(BUILD_EXEEXT): ptimec.c $(AM_V_CC) $(CC_FOR_BUILD) -o $@ $? if HAVE_RE2C -RE2C_FILES = data_scanner_re.cc +RE2C_FILES = data_scanner_re.cc log_level_re.cc endif EXTRA_DIST = \ @@ -478,9 +479,7 @@ DISTCLEANFILES = \ $(BUILT_SOURCES) \ $(RE2C_FILES) \ help-txt.c \ - init-sql.c \ - log_level_re.cc \ - time_fmts.cc + init-sql.c uncrusty: (cd $(srcdir) && uncrustify -c ../lnav.cfg --replace $(SOURCES) \ diff --git a/test/Makefile.am b/test/Makefile.am index 93f68fc4..7a7acacb 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -62,7 +62,8 @@ TEXT2C_OBJS = \ ../src/builtin-scripts.o \ ../src/builtin-sh-scripts.o \ ../src/default-formats.o \ - ../src/help-txt.o + ../src/help-txt.o \ + ../src/time_fmts.o LDADD = \ -lz \