# PSPP - a program for statistical analysis.
-# Copyright (C) 2017 Free Software Foundation, Inc.
-#
+# Copyright (C) 2019, 2020 Free Software Foundation, Inc.
+#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
+#
## Process this file with automake to produce Makefile.in -*- makefile -*-
src_output_liboutput_la_SOURCES += \
src/output/spv/spv-output.h \
src/output/spv/spv-select.c \
src/output/spv/spv-select.h \
+ src/output/spv/spv-table-look.c \
+ src/output/spv/spv-table-look.h \
src/output/spv/spv-writer.c \
src/output/spv/spv-writer.h \
src/output/spv/spv.c \
src/output/spv/spvxml-helpers.c \
src/output/spv/spvxml-helpers.h
+AM_CPPFLAGS += -Isrc
+
light_binary_in = \
src/output/spv/binary-parser-generator \
src/output/spv/light-binary.grammar
BUILT_SOURCES += $(structure_xml_out)
CLEANFILES += $(structure_xml_out)
EXTRA_DIST += $(structure_xml_in)
+
+tlo_in = \
+ src/output/spv/binary-parser-generator \
+ src/output/spv/tlo.grammar
+tlo_out = \
+ src/output/spv/tlo-parser.c \
+ src/output/spv/tlo-parser.h
+src/output/spv/tlo-parser.c: $(tlo_in)
+ $(AM_V_GEN)$(PYTHON) $^ code tlo '"output/spv/tlo-parser.h"' > $@.tmp
+ $(AM_V_at)mv $@.tmp $@
+src/output/spv/tlo-parser.h: $(tlo_in)
+ $(AM_V_GEN)$(PYTHON) $^ header tlo > $@.tmp && mv $@.tmp $@
+nodist_src_output_liboutput_la_SOURCES += $(tlo_out)
+BUILT_SOURCES += $(tlo_out)
+CLEANFILES += $(tlo_out)
+EXTRA_DIST += $(tlo_in)