Add support for .tlo TableLook files from SPSS 15 and earlier.
[pspp] / src / output / spv / automake.mk
index 37f98c3f131bd03e606439ed4fb511e30fb2e65e..01f8a334a9d58e72f10301c5ace53463a377324b 100644 (file)
@@ -30,6 +30,8 @@ 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 \
@@ -104,3 +106,19 @@ nodist_src_output_liboutput_la_SOURCES += $(structure_xml_out)
 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)