index.html:
@if [ "${DOXYGEN}" ]; then \
echo "Running ${DOXYGEN} DoxyfileHTML..."; \
- ${DOXYGEN} DoxyfileHTML; \
+ (cd ${srcdir}; \
+ ${DOXYGEN} DoxyfileHTML); \
else \
echo "warning: target reference_html disabled by configuration"; \
fi
latex/reference.tex:
@if [ "${DOXYGEN}" ]; then \
echo "Running ${DOXYGEN} DoxyfileTEX..."; \
- ${DOXYGEN} DoxyfileTEX; \
+ (cd ${srcdir}; \
+ ${DOXYGEN} DoxyfileTEX); \
mv ${srcdir}/latex/refman.tex ${srcdir}/latex/reference.tex; \
else \
echo "warning: target reference.tex disabled by configuration"; \
echo " $(INSTALL_DATA) $(srcdir)/doxygen.css $(DESTDIR)$(ginacreferencedir)/doxygen.css"; \
$(INSTALL_DATA) $(srcdir)/doxygen.css $(DESTDIR)$(ginacreferencedir)/doxygen.css; \
fi
- @for p in *.html; do \
- if [ -f $(srcdir)/$$p ]; then \
- echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
- $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
- fi; \
+ @for p in `echo $(srcdir)/*.html | sed 's,[^ ]*/,,g'`; do \
+ echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
+ $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
done
- @for p in *.gif; do \
- if [ -f $(srcdir)/$$p ]; then \
- echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
- $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
- fi; \
+ @for p in `echo $(srcdir)/*.gif | sed 's,[^ ]*/,,g'`; do \
+ echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
+ $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
done
uninstall-local:
rm -f $(DESTDIR)$(ginacreferencedir)/doxygen.css
- @for p in *.html; do \
- echo " rm -f $(DESTDIR)$(ginacreferencedir)/$$p"; \
- rm -f $(DESTDIR)$(ginacreferencedir)/$$p; \
- done
- @for p in *.gif; do \
- echo " rm -f $(DESTDIR)$(ginacreferencedir)/$$p"; \
- rm -f $(DESTDIR)$(ginacreferencedir)/$$p; \
- done
+ rm -f $(DESTDIR)$(ginacreferencedir)/*.html
+ rm -f $(DESTDIR)$(ginacreferencedir)/*.gif
index.html:
@if [ "${DOXYGEN}" ]; then \
echo "Running ${DOXYGEN} DoxyfileHTML..."; \
- ${DOXYGEN} DoxyfileHTML; \
+ (cd ${srcdir}; \
+ ${DOXYGEN} DoxyfileHTML); \
else \
echo "warning: target reference_html disabled by configuration"; \
fi
latex/reference.tex:
@if [ "${DOXYGEN}" ]; then \
echo "Running ${DOXYGEN} DoxyfileTEX..."; \
- ${DOXYGEN} DoxyfileTEX; \
+ (cd ${srcdir}; \
+ ${DOXYGEN} DoxyfileTEX); \
mv ${srcdir}/latex/refman.tex ${srcdir}/latex/reference.tex; \
else \
echo "warning: target reference.tex disabled by configuration"; \
echo " $(INSTALL_DATA) $(srcdir)/doxygen.css $(DESTDIR)$(ginacreferencedir)/doxygen.css"; \
$(INSTALL_DATA) $(srcdir)/doxygen.css $(DESTDIR)$(ginacreferencedir)/doxygen.css; \
fi
- @for p in *.html; do \
- if [ -f $(srcdir)/$$p ]; then \
- echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
- $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
- fi; \
+ @for p in `echo $(srcdir)/*.html | sed 's,[^ ]*/,,g'`; do \
+ echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
+ $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
done
- @for p in *.gif; do \
- if [ -f $(srcdir)/$$p ]; then \
- echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
- $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
- fi; \
+ @for p in `echo $(srcdir)/*.gif | sed 's,[^ ]*/,,g'`; do \
+ echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
+ $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
done
uninstall-local:
rm -f $(DESTDIR)$(ginacreferencedir)/doxygen.css
- @for p in *.html; do \
- echo " rm -f $(DESTDIR)$(ginacreferencedir)/$$p"; \
- rm -f $(DESTDIR)$(ginacreferencedir)/$$p; \
- done
- @for p in *.gif; do \
- echo " rm -f $(DESTDIR)$(ginacreferencedir)/$$p"; \
- rm -f $(DESTDIR)$(ginacreferencedir)/$$p; \
- done
+ rm -f $(DESTDIR)$(ginacreferencedir)/*.html
+ rm -f $(DESTDIR)$(ginacreferencedir)/*.gif
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
SUFFIXES = .fig .png .eps .txt
-%.eps: %.fig
+.fig.eps:
@if [ "${FIG2DEV}" ]; then \
echo "Running ${FIG2DEV} -L eps -m 0.9 $< $@..."; \
- ${FIG2DEV} -L eps -m 0.9 $< $@; \
+ cd $(srcdir) && ${FIG2DEV} -L eps -m 0.9 $< $@; \
else \
echo "warning: fig2dev was not found by configure"; \
fi
-%.png: %.fig
+.fig.png:
@if [ "${FIG2DEV}" ]; then \
echo "Running ${FIG2DEV} -L png $< $@..."; \
- ${FIG2DEV} -L png $< $@; \
+ cd $(srcdir) && ${FIG2DEV} -L png $< $@; \
else \
echo "warning: fig2dev was not found by configure"; \
fi
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../config.h
CONFIG_CLEAN_FILES =
+CFLAGS = @CFLAGS@
+COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
TEXI2DVI = texi2dvi
INFO_DEPS = ginac.info
DVIS = ginac.dvi
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
-%.eps: %.fig
+.fig.eps:
@if [ "${FIG2DEV}" ]; then \
echo "Running ${FIG2DEV} -L eps -m 0.9 $< $@..."; \
- ${FIG2DEV} -L eps -m 0.9 $< $@; \
+ cd $(srcdir) && ${FIG2DEV} -L eps -m 0.9 $< $@; \
else \
echo "warning: fig2dev was not found by configure"; \
fi
-%.png: %.fig
+.fig.png:
@if [ "${FIG2DEV}" ]; then \
echo "Running ${FIG2DEV} -L png $< $@..."; \
- ${FIG2DEV} -L png $< $@; \
+ cd $(srcdir) && ${FIG2DEV} -L png $< $@; \
else \
echo "warning: fig2dev was not found by configure"; \
fi
EXTRA_DIST = container.pl function.pl structure.pl
# Files which are generated by perl scripts
-function.h function.cpp: function.pl
- perl function.pl
+$(srcdir)/function.h $(srcdir)/function.cpp: $(srcdir)/function.pl
+ cd $(srcdir) && perl function.pl
-lst.h lst.cpp: container.pl
- perl container.pl lst
+$(srcdir)/lst.h $(srcdir)/lst.cpp: $(srcdir)/container.pl
+ cd $(srcdir) && perl container.pl lst
-exprseq.h exprseq.cpp: container.pl
- perl container.pl exprseq
+$(srcdir)/exprseq.h $(srcdir)/exprseq.cpp: $(srcdir)/container.pl
+ cd $(srcdir) && perl container.pl exprseq
# Force build of headers before compilation
-add.cpp: function.h lst.h exprseq.h
+$(srcdir)/add.cpp: $(srcdir)/function.h $(srcdir)/lst.h $(srcdir)/exprseq.h
# Files which are generated by perl scripts
-function.h function.cpp: function.pl
- perl function.pl
+$(srcdir)/function.h $(srcdir)/function.cpp: $(srcdir)/function.pl
+ cd $(srcdir) && perl function.pl
-lst.h lst.cpp: container.pl
- perl container.pl lst
+$(srcdir)/lst.h $(srcdir)/lst.cpp: $(srcdir)/container.pl
+ cd $(srcdir) && perl container.pl lst
-exprseq.h exprseq.cpp: container.pl
- perl container.pl exprseq
+$(srcdir)/exprseq.h $(srcdir)/exprseq.cpp: $(srcdir)/container.pl
+ cd $(srcdir) && perl container.pl exprseq
# Force build of headers before compilation
-add.cpp: function.h lst.h exprseq.h
+$(srcdir)/add.cpp: $(srcdir)/function.h $(srcdir)/lst.h $(srcdir)/exprseq.h
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
#ifndef __GINAC_ADD_H__
#define __GINAC_ADD_H__
-#include <ginac/expairseq.h>
+#include "expairseq.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#ifndef __GINAC_ARCHIVE_H__
#define __GINAC_ARCHIVE_H__
-#include <ginac/ex.h>
+#include "ex.h"
#include <string>
#include <vector>
// CINT needs <algorithm> to work properly with <vector>
#include <algorithm>
-#include <ginac/flags.h>
-#include <ginac/tinfos.h>
-#include <ginac/assertion.h>
-#include <ginac/registrar.h>
+#include "flags.h"
+#include "tinfos.h"
+#include "assertion.h"
+#include "registrar.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#define __GINAC_CLIFFORD_H__
#include <string>
-#include <ginac/indexed.h>
-#include <ginac/ex.h>
+#include "indexed.h"
+#include "ex.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#include <string>
#include <vector>
-#include <ginac/indexed.h>
-#include <ginac/ex.h>
+#include "indexed.h"
+#include "ex.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#include <string>
#include <vector>
-#include <ginac/idx.h>
-#include <ginac/ex.h>
+#include "idx.h"
+#include "ex.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#define __GINAC_CONSTANT_H__
#include <string>
-#include <ginac/basic.h>
+#include "basic.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
// CINT needs <algorithm> to work properly with <vector> and <list>
#include <algorithm>
-#include <ginac/basic.h>
-#include <ginac/ex.h>
+#include "basic.h"
+#include "ex.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#define __GINAC_EX_H__
#include <iostream>
-#include <ginac/basic.h>
-#include <ginac/operators.h>
+#include "basic.h"
+#include "operators.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#ifndef __GINAC_EXPAIR_H__
#define __GINAC_EXPAIR_H__
-#include <ginac/ex.h>
-#include <ginac/numeric.h>
+#include "ex.h"
+#include "numeric.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
// CINT needs <algorithm> to work properly with <vector> and <list>
//#include <algorithm>
-#include <ginac/expair.h>
+#include "expair.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#ifndef __GINAC_FAIL_H__
#define __GINAC_FAIL_H__
-#include <ginac/basic.h>
+#include "basic.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#include <algorithm>
#endif // def __CINT__
-#include <ginac/exprseq.h>
+#include "exprseq.h"
#ifndef NO_GINAC_NAMESPACE
#ifndef __GINAC_H__
#define __GINAC_H__
-#include <ginac/basic.h>
+#include "basic.h"
-#include <ginac/ex.h>
-#include <ginac/normal.h>
-#include <ginac/archive.h>
+#include "ex.h"
+#include "normal.h"
+#include "archive.h"
-#include <ginac/constant.h>
-#include <ginac/fail.h>
-#include <ginac/idx.h>
-#include <ginac/lst.h>
-#include <ginac/matrix.h>
-#include <ginac/numeric.h>
-#include <ginac/power.h>
-#include <ginac/relational.h>
-#include <ginac/structure.h>
-#include <ginac/symbol.h>
+#include "constant.h"
+#include "fail.h"
+#include "idx.h"
+#include "lst.h"
+#include "matrix.h"
+#include "numeric.h"
+#include "power.h"
+#include "relational.h"
+#include "structure.h"
+#include "symbol.h"
-#include <ginac/expair.h>
-#include <ginac/expairseq.h>
-#include <ginac/add.h>
-#include <ginac/mul.h>
-#include <ginac/pseries.h>
+#include "expair.h"
+#include "expairseq.h"
+#include "add.h"
+#include "mul.h"
+#include "pseries.h"
-#include <ginac/exprseq.h>
-#include <ginac/function.h>
-#include <ginac/ncmul.h>
+#include "exprseq.h"
+#include "function.h"
+#include "ncmul.h"
-#include <ginac/inifcns.h>
-#include <ginac/operators.h>
+#include "inifcns.h"
+#include "operators.h"
#ifndef GINAC_BASE_ONLY
-#include <ginac/indexed.h>
-#include <ginac/clifford.h>
-#include <ginac/coloridx.h>
-#include <ginac/color.h>
-#include <ginac/isospin.h>
-#include <ginac/lorentzidx.h>
-#include <ginac/simp_lor.h>
-#include <ginac/lortensor.h>
+#include "indexed.h"
+#include "clifford.h"
+#include "coloridx.h"
+#include "color.h"
+#include "isospin.h"
+#include "lorentzidx.h"
+#include "simp_lor.h"
+#include "lortensor.h"
#endif // ndef GINAC_BASE_ONLY
#endif // ndef __GINAC_H__
#include <string>
//#include <vector>
-#include <ginac/basic.h>
-#include <ginac/ex.h>
+#include "basic.h"
+#include "ex.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#define __GINAC_INDEXED_H__
#include <string>
-#include <ginac/exprseq.h>
+#include "exprseq.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#ifndef __GINAC_INIFCNS_H__
#define __GINAC_INIFCNS_H__
-#include <ginac/function.h>
-#include <ginac/ex.h>
+#include "function.h"
+#include "ex.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#define __GINAC_ISOSPIN_H__
#include <string>
-#include <ginac/indexed.h>
+#include "indexed.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#include <string>
#include <vector>
-#include <ginac/idx.h>
+#include "idx.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#include <string>
#include <vector>
-#include "config.h"
#include <iostream>
-#include <ginac/indexed.h>
-#include <ginac/lorentzidx.h>
+#include "config.h"
+#include "indexed.h"
+#include "lorentzidx.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#define __GINAC_MATRIX_H__
#include <vector>
-#include <ginac/basic.h>
-#include <ginac/ex.h>
+#include "basic.h"
+#include "ex.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#ifndef __GINAC_MUL_H__
#define __GINAC_MUL_H__
-#include <ginac/expairseq.h>
+#include "expairseq.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#ifndef __GINAC_NCMUL_H__
#define __GINAC_NCMUL_H__
-#include <ginac/exprseq.h>
+#include "exprseq.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#define __GINAC_NUMERIC_H__
#include <strstream>
-#include <ginac/basic.h>
-#include <ginac/ex.h>
+#include "basic.h"
+#include "ex.h"
class cl_N; // We want to include cln.h only in numeric.cpp in order to
// avoid namespace pollution and keep compile-time low.
#ifndef __GINAC_POWER_H__
#define __GINAC_POWER_H__
-#include <ginac/basic.h>
-#include <ginac/ex.h>
+#include "basic.h"
+#include "ex.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#ifndef __GINAC_SERIES_H__
#define __GINAC_SERIES_H__
-#include <ginac/basic.h>
-#include <ginac/expairseq.h>
+#include "basic.h"
+#include "expairseq.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#ifndef __GINAC_RELATIONAL_H__
#define __GINAC_RELATIONAL_H__
-#include <ginac/basic.h>
-#include <ginac/ex.h>
+#include "basic.h"
+#include "ex.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#include <utility>
#include <map>
#include <iostream>
-#include <ginac/indexed.h>
-#include <ginac/lorentzidx.h>
+#include "indexed.h"
+#include "lorentzidx.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#ifndef __GINAC_STRUCTURE_H__
#define __GINAC_STRUCTURE_H__
-#include <ginac/basic.h>
+#include "basic.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#ifndef __GINAC_${STRUCTURE_UC}_H__
#define __GINAC_${STRUCTURE_UC}_H__
-#include <ginac/structure.h>
+#include "structure.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
#define __GINAC_SYMBOL_H__
#include <string>
-#include <ginac/basic.h>
-#include <ginac/ex.h>
+#include "basic.h"
+#include "ex.h"
#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
bin_PROGRAMS = ginsh
ginsh_SOURCES = ginsh_parser.yy ginsh_lexer.ll ginsh.h
ginsh_LDADD = ../ginac/libginac.la $(GINSH_LIBS)
+INCLUDES = -I$(srcdir)/../ginac
man_MANS = ginsh.1
YFLAGS = -d
EXTRA_DIST = $(man_MANS) ginsh_parser.h ginsh_fcn_help.sed ginsh_op_help.sed
bin_PROGRAMS = ginsh
ginsh_SOURCES = ginsh_parser.yy ginsh_lexer.ll ginsh.h
ginsh_LDADD = ../ginac/libginac.la $(GINSH_LIBS)
+INCLUDES = -I$(srcdir)/../ginac
man_MANS = ginsh.1
YFLAGS = -d
EXTRA_DIST = $(man_MANS) ginsh_parser.h ginsh_fcn_help.sed ginsh_op_help.sed
}
#endif
-#include <ginac/ginac.h>
+#include "ginac.h"
#ifndef NO_GINAC_NAMESPACE
using namespace GiNaC;
bin_PROGRAMS = viewgar
viewgar_SOURCES = viewgar.cpp
viewgar_LDADD = ../ginac/libginac.la
+INCLUDES = -I$(srcdir)/../ginac
man_MANS = viewgar.1
EXTRA_DIST = $(man_MANS)
bin_PROGRAMS = viewgar
viewgar_SOURCES = viewgar.cpp
viewgar_LDADD = ../ginac/libginac.la
+INCLUDES = -I$(srcdir)/../ginac
man_MANS = viewgar.1
EXTRA_DIST = $(man_MANS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
#include <fstream>
#include <stdexcept>
-#include <ginac/ginac.h>
+#include "ginac.h"
using namespace GiNaC;
int main(int argc, char **argv)