X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginsh%2FMakefile.am;h=b0dfd69cff3df6e3d80f351f1718bf4884d05c42;hp=2de56d45acf1dfdf758c8a5d1ff41ceec20a9d11;hb=052e9928511dd77d1d5d489b2a61b75579cc44e3;hpb=8bd8cedd086aeaf08630d5357af37151e1d06d06 diff --git a/ginsh/Makefile.am b/ginsh/Makefile.am index 2de56d45..b0dfd69c 100644 --- a/ginsh/Makefile.am +++ b/ginsh/Makefile.am @@ -1,17 +1,16 @@ ## Process this file with automake to produce Makefile.in bin_PROGRAMS = ginsh -BUILT_SOURCES = ginsh_parser.cpp ginsh_lexer.cpp -ginsh_SOURCES = ginsh_parser.ypp ginsh_lexer.lpp ginsh.h ginsh_extensions.h +BUILT_SOURCES = ginsh_parser.cpp ginsh_lexer.cpp ginsh_parser.hpp +ginsh_SOURCES = ginsh_parser.cpp ginsh_parser.hpp ginsh_lexer.lpp ginsh.h ginsh_extensions.h ginsh_LDADD = ../ginac/libginac.la $(GINSH_LIBS) AM_CPPFLAGS = -I$(srcdir)/../ginac -I../ginac -DIN_GINAC -AM_YFLAGS = -d man_MANS = ginsh.1 CLEANFILES = ginsh_fcn_help.h ginsh_op_help.h -EXTRA_DIST = ginsh_fcn_help.py ginsh_op_help.py +EXTRA_DIST = ginsh_parser.ypp ginsh_fcn_help.py ginsh_op_help.py CMakeLists.txt # files created by sed scripts ginsh_fcn_help.h: ginsh.1.in $(srcdir)/ginsh_fcn_help.py @@ -20,4 +19,9 @@ ginsh_fcn_help.h: ginsh.1.in $(srcdir)/ginsh_fcn_help.py ginsh_op_help.h: ginsh.1 $(srcdir)/ginsh_op_help.py $(PYTHON) $(srcdir)/ginsh_op_help.py -o $@ $< -ginsh_parser.o: ginsh_fcn_help.h ginsh_op_help.h ginsh_parser.cpp +# automake <=1.11 and automake >=1.12 have different conventions for naming C++ header files +# made by yacc. To work with both, we write our own rule rather than using automake's. +ginsh_parser.cpp ginsh_parser.hpp: ginsh_parser.ypp + $(YACC) $(YFLAGS) -o ginsh_parser.cpp --defines=ginsh_parser.hpp $< + +ginsh_parser.o: ginsh_fcn_help.h ginsh_op_help.h ginsh_parser.hpp