git://www.ginac.de
/
ginac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[build] Rewrite ginsh related sed scripts in python.
[ginac.git]
/
ginsh
/
Makefile.am
diff --git
a/ginsh/Makefile.am
b/ginsh/Makefile.am
index 8654f25817606be49c5b7672411656428e4fe558..c4269f56a4f74c4bdfccae9c1b1242fb6a4c75d5 100644
(file)
--- a/
ginsh/Makefile.am
+++ b/
ginsh/Makefile.am
@@
-1,22
+1,22
@@
## Process this file with automake to produce Makefile.in
bin_PROGRAMS = ginsh
## Process this file with automake to produce Makefile.in
bin_PROGRAMS = ginsh
-ginsh_SOURCES = ginsh_parser.yy ginsh_lexer.ll ginsh.h
+ginsh_SOURCES = ginsh_parser.yy ginsh_lexer.ll ginsh.h
ginsh_extensions.h
ginsh_LDADD = ../ginac/libginac.la $(GINSH_LIBS)
ginsh_LDADD = ../ginac/libginac.la $(GINSH_LIBS)
-CPPFLAGS = -DIN_GINAC
-INCLUDES = -I$(srcdir)/../ginac
-YFLAGS = -d
+INCLUDES = -I$(srcdir)/../ginac -I../ginac -DIN_GINAC
+AM_YFLAGS = -d
man_MANS = ginsh.1
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
# files created by sed scripts
-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 $@ $<
-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: ginsh_fcn_help.
c ginsh_op_help.c
+ginsh_parser.o: ginsh_fcn_help.
h ginsh_op_help.h ginsh_parser.h