-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.in
70 lines (50 loc) · 1.75 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
# Process this with config.status to get Makefile
PACKAGE_VERSION = @PACKAGE_VERSION@
prefix = @prefix@
sbindir = @sbindir@
bindir = @bindir@
sysconfdir = @CONFDIR@
bofh = @bofh_enabled@
AUTOCONF = @AUTOCONF@
srcdir = .
top_builddir = .
all: Makefile
.PHONY: install
install: Makefile clients/jbofh/dist/lib/JBofh.jar
#./setup.py install install_data --install-dir=$(prefix)
./setup.py install --prefix=$(prefix)
.PHONY: dist
dist: dist/Cerebrum-$(PACKAGE_VERSION).tar.gz
dist/Cerebrum-$(PACKAGE_VERSION).tar.gz: Makefile clients/jbofh/dist/lib/JBofh.jar
./setup.py sdist
distcheck: dist/Cerebrum-$(PACKAGE_VERSION).tar.gz
rm -rf dist-test && mkdir dist-test
cd dist-test; \
tar zxvf ../dist/Cerebrum-$(PACKAGE_VERSION).tar.gz
cd dist-test/Cerebrum-$(PACKAGE_VERSION); \
./configure --prefix=`pwd`/=install && \
make && \
make install
bootstrap: all
$(MAKE) -C testsuite bootstrap 2>&1 | tee testsuite/log-bootstrap.out
testrun: all
$(MAKE) -C testsuite testrun 2>&1 | tee testsuite/log-testrun.out
check: all
PYTHONPATH=`pwd` python testsuite/Run.py -v 2>&1 | \
tee testsuite/log-check.out
dbcheck: all
PYTHONPATH=`pwd` python testsuite/Run.py -v Cerebrum.tests.SQLDriverTestCase.suite 2>&1 | \
tee testsuite/log-check.out
fullcheck: bootstrap check testrun
clean:
$(RM) -r build
clients/jbofh/dist/lib/JBofh.jar:
$(if $(filter yes, $(bofh)), cd clients/jbofh && ant dist, )
distclean: clean
-$(RM) config.log config.status Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && CONFIG_FILES=$@ $(SHELL) ./config.status
config.status: $(srcdir)/configure $(srcdir)/configure.ac
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.ac
cd $(srcdir) && $(AUTOCONF)