DEBUG EVALUATE: Use output_log() instead of printf().
[pspp] / src / language / expressions / automake.mk
index 79e875528d61687a42156ee97e616ef39bca754b..b1f710dc38cf348fd43fde899a59af87a2cb975d 100644 (file)
@@ -1,3 +1,19 @@
+# PSPP - a program for statistical analysis.
+# Copyright (C) 2017 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 -*-
 
 language_expressions_sources = \
@@ -9,7 +25,7 @@ language_expressions_sources = \
        src/language/expressions/private.h \
        src/language/expressions/public.h
 
-expressions_built_sources= \
+expressions_built_sources = \
        src/language/expressions/evaluate.h \
        src/language/expressions/evaluate.inc \
        src/language/expressions/operations.h \
@@ -21,19 +37,13 @@ CLEANFILES += $(expressions_built_sources)
 
 helpers = src/language/expressions/generate.pl \
        src/language/expressions/operations.def
+EXTRA_DIST += $(helpers)
 
 $(expressions_built_sources): $(helpers)
-EXTRA_DIST += $(helpers) $(expressions_built_sources:=.pl)
+       $(AV_V_GEN)$(MKDIR_P) `dirname $@` && \
+       $(PERL) $< -o $@ -i $(top_srcdir)/src/language/expressions/operations.def
+
 AM_CPPFLAGS += -I$(top_builddir)/src/language/expressions \
        -I$(top_srcdir)/src/language/expressions
 
-SUFFIXES = .h.pl .inc.pl
-
-generate_from_pl = $(top_srcdir)/mkinstalldirs `dirname $@` && \
-       $(PERL) -I $(top_srcdir)/src/language/expressions $< -o $@ -i $(top_srcdir)/src/language/expressions/operations.def
-
-.h.pl.h:
-       $(generate_from_pl)
-
-.inc.pl.inc:
-       $(generate_from_pl)
+EXTRA_DIST += src/language/expressions/TODO