- first implementation of pattern matching
[ginac.git] / ginsh / Makefile.am
index 3f514141fa5fc200d6d19c5b3253e5565afda275..d391d3b03999c851514398a7213342fb32f63e0e 100644 (file)
@@ -3,15 +3,19 @@
 bin_PROGRAMS = ginsh
 ginsh_SOURCES = ginsh_parser.yy ginsh_lexer.ll ginsh.h
 ginsh_LDADD = ../ginac/libginac.la $(GINSH_LIBS)
 bin_PROGRAMS = ginsh
 ginsh_SOURCES = ginsh_parser.yy ginsh_lexer.ll ginsh.h
 ginsh_LDADD = ../ginac/libginac.la $(GINSH_LIBS)
-man_MANS = ginsh.1
+
+INCLUDES = -I$(srcdir)/../ginac -I../ginac -DIN_GINAC
 YFLAGS = -d
 YFLAGS = -d
-EXTRA_DIST = $(man_MANS) ginsh_parser.h ginsh_fcn_help.sed ginsh_op_help.sed
+
+man_MANS = ginsh.1
+
+EXTRA_DIST = ginsh_parser.h ginsh_fcn_help.sed ginsh_op_help.sed
 
 # files created by sed scripts
 
 # files created by sed scripts
-ginsh_fcn_help.c: ginsh.1 ginsh_fcn_help.sed
-       sed -n -f ginsh_fcn_help.sed <$< >$@
+ginsh_fcn_help.c: ginsh.1 $(srcdir)/ginsh_fcn_help.sed
+       sed -n -f $(srcdir)/ginsh_fcn_help.sed <$< >$@
 
 
-ginsh_op_help.c: ginsh.1 ginsh_op_help.sed
-       sed -n -f ginsh_op_help.sed <$< >$@
+ginsh_op_help.c: ginsh.1 $(srcdir)/ginsh_op_help.sed
+       sed -n -f $(srcdir)/ginsh_op_help.sed <$< >$@
 
 ginsh_parser.o: ginsh_fcn_help.c ginsh_op_help.c
 
 ginsh_parser.o: ginsh_fcn_help.c ginsh_op_help.c