X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginsh%2FMakefile.am;h=c4269f56a4f74c4bdfccae9c1b1242fb6a4c75d5;hp=4317977891acf5558ca5cb6e84edf31e6fae5062;hb=a06a27122b0a9087e9c64743940016c7e0176ce2;hpb=65fabdb6c6b2d17f0999604415d0b4321eba39a7 diff --git a/ginsh/Makefile.am b/ginsh/Makefile.am index 43179778..c4269f56 100644 --- a/ginsh/Makefile.am +++ b/ginsh/Makefile.am @@ -5,17 +5,18 @@ ginsh_SOURCES = ginsh_parser.yy ginsh_lexer.ll ginsh.h ginsh_extensions.h ginsh_LDADD = ../ginac/libginac.la $(GINSH_LIBS) INCLUDES = -I$(srcdir)/../ginac -I../ginac -DIN_GINAC -YFLAGS = -d +AM_YFLAGS = -d man_MANS = ginsh.1 -EXTRA_DIST = ginsh_parser.h ginsh_fcn_help.sed ginsh_op_help.sed +CLEANFILES = ginsh_fcn_help.h ginsh_op_help.h +EXTRA_DIST = ginsh_parser.h ginsh_fcn_help.py ginsh_op_help.py # files created by sed scripts -$(srcdir)/ginsh_fcn_help.c: ginsh.1 $(srcdir)/ginsh_fcn_help.sed - sed -n -f $(srcdir)/ginsh_fcn_help.sed <$< >$@ +ginsh_fcn_help.h: ginsh.1.in $(srcdir)/ginsh_fcn_help.py + $(PYTHON) $(srcdir)/ginsh_fcn_help.py -o $@ $< -$(srcdir)/ginsh_op_help.c: ginsh.1 $(srcdir)/ginsh_op_help.sed - sed -n -f $(srcdir)/ginsh_op_help.sed <$< >$@ +ginsh_op_help.h: ginsh.1 $(srcdir)/ginsh_op_help.py + $(PYTHON) $(srcdir)/ginsh_op_help.py -o $@ $< -ginsh_parser.o: $(srcdir)/ginsh_fcn_help.c $(srcdir)/ginsh_op_help.c +ginsh_parser.o: ginsh_fcn_help.h ginsh_op_help.h ginsh_parser.h