Removed debug output.
[cadabra.git] / Makefile.in
blob0d363e343f2e8666506d8c9ed276fb51129523f5
2 export RELEASE=1.28
4 .PHONY: static program_static test fasttest gui gui_static doc
6 ifeq (@enable_gui@,no)
7 all: program
9 install: install_program
10 else
11 all: program gui
13 install: install_program install_gui
14 endif
17 static: program_static
19 program:
20 ( cd src && $(MAKE) );
22 program_static:
23 ( cd src && $(MAKE) static );
25 profile:
26 ( export CFLAGS=-pg && export LDFLAGS=-pg && cd src && $(MAKE) );
28 doc:
29 ( cd doc && $(MAKE) );
31 gui:
32 ( cd gui && $(MAKE) );
34 gui_static:
35 ( cd gui && $(MAKE) static );
37 push_git_public:
38 git push git+ssh://kpeeters@repo.or.cz/srv/git/cadabra.git master
40 push_git_aei:
41 git push kaspercvs:git/cadabra master
43 tarball:
44 git archive --format=tar --prefix=cadabra-${RELEASE}/ HEAD | gzip > ${HOME}/tmp/cadabra-${RELEASE}.tar.gz
46 test: program
47 @echo "==== Running tests ===="
48 ( export CDB_PARANOID=1 && export CDB_ERRORS_ARE_FATAL=1 \
49 && export CDB_PRINTSTAR=1 && cd tests && $(MAKE) clean && $(MAKE) all);
50 @echo "==== Tests passed ====="
51 @echo "**** Do not forget to run the advanced tests with 'make advtest' ****"
53 fasttest: program
54 @echo "==== Running tests without consistency checks ===="
55 ( export CDB_PRINTSTAR=1 && export CDB_ERRORS_ARE_FATAL=1 && cd tests && $(MAKE) clean && $(MAKE) all);
56 @echo "==== Tests passed ====="
57 @echo "**** Do not forget to run the 'advtest', 'mapletest' and 'maximates' targets ****"
59 advtest: program
60 @echo "==== Running advanced tests (this may take a while) ===="
61 ( export CDB_PARANOID=1 && export CDB_PRINTSTAR=1 && cd tests && $(MAKE) clean && $(MAKE) advanced);
62 @echo "==== Advanced tests passed ====="
64 mapletest: program
65 @echo "==== Running maple dependent tests ===="
66 ( export CDB_PARANOID=1 && export CDB_PRINTSTAR=1 && cd tests && $(MAKE) clean && $(MAKE) maple);
67 @echo "==== Maple tests passed ====="
69 maximatest: program
70 @echo "==== Running maxima dependent tests ===="
71 ( export CDB_PARANOID=1 && export CDB_PRINTSTAR=1 && cd tests && $(MAKE) clean && $(MAKE) maxima);
72 @echo "==== Maxima tests passed ====="
74 install_program: program
75 ( cd src && $(MAKE) install );
76 @INSTALL@ -d ${DESTDIR}@prefix@/share/man/man1
77 @INSTALL@ -m 644 man/man1/cadabra.1 ${DESTDIR}@prefix@/share/man/man1
78 @INSTALL@ -d ${DESTDIR}@prefix@/bin
79 @INSTALL@ -d ${DESTDIR}@prefix@/share/TeXmacs/plugins/cadabra/progs
80 @INSTALL@ -m 644 texmacs/init-cadabra.scm ${DESTDIR}@prefix@/share/TeXmacs/plugins/cadabra/progs
81 @INSTALL@ -d ${DESTDIR}@prefix@/share/texmf/tex/latex/cadabra
82 @INSTALL@ -m 644 doc/cadabra.sty $(DESTDIR)@prefix@/share/texmf/tex/latex/cadabra/cadabra.sty
83 @INSTALL@ -d ${DESTDIR}@prefix@/share/doc/cadabra/properties
84 @INSTALL@ -d ${DESTDIR}@prefix@/share/doc/cadabra/algorithms
85 @INSTALL@ -d ${DESTDIR}@prefix@/share/doc/cadabra/reserved
86 @INSTALL@ -m 644 doc/properties/*.tex ${DESTDIR}@prefix@/share/doc/cadabra/properties
87 @INSTALL@ -m 644 doc/algorithms/*.tex ${DESTDIR}@prefix@/share/doc/cadabra/algorithms
88 @INSTALL@ -m 644 doc/reserved/*.tex ${DESTDIR}@prefix@/share/doc/cadabra/reserved
89 @INSTALL@ -m 644 doc/general.tex ${DESTDIR}@prefix@/share/doc/cadabra/general.tex
91 install_gui: gui
92 ( cd gui && $(MAKE) install );
93 @INSTALL@ -m 644 man/man1/xcadabra.1 ${DESTDIR}@prefix@/share/man/man1
94 @INSTALL@ -d ${DESTDIR}@prefix@/share/applications/
95 @INSTALL@ -d ${DESTDIR}@prefix@/share/pixmaps/
96 @INSTALL@ -m 644 cadabra.desktop ${DESTDIR}@prefix@/share/applications/cadabra.desktop
97 @INSTALL@ -m 644 cadabra.png ${DESTDIR}@prefix@/share/pixmaps/cadabra.png
99 uninstall:
100 ( cd src && $(MAKE) uninstall );
102 clean:
103 ( cd src && $(MAKE) clean );
104 ( cd tests && $(MAKE) clean );
105 ( cd gui && $(MAKE) clean );
106 ( cd doc && $(MAKE) clean );
107 # ( cd deb && rm -Rf usr );
108 rm -f cadabra*.deb
109 rm -f doc/*~
110 rm -f *~
111 rm -f man/man1/*~
113 distclean:
114 ( cd src && $(MAKE) distclean );
115 ( cd tests && $(MAKE) distclean );
116 ( cd gui && $(MAKE) distclean );
117 ( cd doc && $(MAKE) distclean );
118 rm -f Makefile config.cache config.log config.status cdb.log aclocal.m4
119 rm -f cdb*.log tst *~
120 rm -Rf autom4te.cache
122 depend:
123 ( cd src && $(MAKE) .depend );
124 ( cd gui && $(MAKE) .depend );