-ginacinclude_HEADERS = ginac.h add.h basic.h clifford.h color.h coloridx.h \
- constant.h debugmsg.h ex.h expair.h expairseq.h exprseq.h fail.h flags.h \
- function.h idx.h indexed.h inifcns.h isospin.h lorentzidx.h lst.h matrix.h \
- mul.h ncmul.h normal.h numeric.h operators.h power.h relational.h series.h \
- simp_lor.h structure.h symbol.h tinfos.h
+ginacinclude_HEADERS = ginac.h add.h archive.h assertion.h basic.h class_info.h \
+ clifford.h color.h constant.h container.h ex.h expair.h expairseq.h exprseq.h \
+ fail.h fderivative.h flags.h function.h hash_map.h idx.h indexed.h inifcns.h \
+ lst.h matrix.h mul.h ncmul.h normal.h numeric.h operators.h power.h print.h \
+ pseries.h ptr.h registrar.h relational.h structure.h symbol.h symmetry.h \
+ tensor.h tinfos.h version.h wildcard.h
+AM_LFLAGS = -Pginac_yy -olex.yy.c
+AM_YFLAGS = -p ginac_yy -d
+EXTRA_DIST = function.pl input_parser.h version.h.in
+
+# Files which are generated by perl scripts
+$(srcdir)/function.h $(srcdir)/function.cpp: $(srcdir)/function.pl
+ cd $(srcdir) && perl -w function.pl
+
+# Force build of headers before compilation
+$(srcdir)/add.cpp: $(srcdir)/function.h