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