8
by Canonical.com Patch Queue Manager
Added Soyuz app server start-up and config files |
1 |
# This file modified from Zope3/Makefile
|
2 |
# Licensed under the ZPL, (c) Zope Corporation and contributors.
|
|
3 |
||
4 |
PYTHON=python2.3 |
|
5 |
CONFFILE=soyuz.conf |
|
6 |
STARTSCRIPT=runsoyuz.py |
|
7 |
TESTFLAGS=-p -v |
|
8 |
TESTOPTS= |
|
9 |
SETUPFLAGS= |
|
22
by Canonical.com Patch Queue Manager
SET Z3LIBPATH appropriate |
10 |
Z3LIBPATH=$(shell pwd)/sourcecode/zope/src |
13
by Canonical.com Patch Queue Manager
run soyuz regression tests |
11 |
HERE:=$(shell pwd) |
8
by Canonical.com Patch Queue Manager
Added Soyuz app server start-up and config files |
12 |
|
2
by Canonical.com Patch Queue Manager
merge stub layout from robert.collins@canonical.com |
13 |
check: |
12
by Canonical.com Patch Queue Manager
merge recent changes |
14 |
$(MAKE) -C sourcecode check |
13
by Canonical.com Patch Queue Manager
run soyuz regression tests |
15 |
PYTHONPATH=$(HERE)/lib ./test.py |
2
by Canonical.com Patch Queue Manager
merge stub layout from robert.collins@canonical.com |
16 |
|
17 |
.PHONY: check |
|
18 |
||
8
by Canonical.com Patch Queue Manager
Added Soyuz app server start-up and config files |
19 |
# XXX What should the default be?
|
20 |
all: inplace runners |
|
21 |
||
22 |
# Build in-place
|
|
23 |
##inplace:
|
|
24 |
## $(PYTHON) setup.py $(SETUPFLAGS) build_ext -i
|
|
25 |
##
|
|
26 |
##build:
|
|
27 |
## $(PYTHON) setup.py $(SETUPFLAGS) build
|
|
28 |
inplace: |
|
29 |
||
30 |
build: |
|
21
by Canonical.com Patch Queue Manager
provide a build target for the sourcecode meta-dir |
31 |
$(MAKE) -C sourcecode build |
8
by Canonical.com Patch Queue Manager
Added Soyuz app server start-up and config files |
32 |
|
33 |
runners: |
|
34 |
echo "#!/bin/sh" > bin/runzope; |
|
35 |
echo "exec $(PYTHON) $(STARTSCRIPT) -C $(CONFFILE)" >> bin/runzope; |
|
36 |
chmod +x bin/runzope |
|
37 |
echo "#!/bin/sh" > bin/zopectl; |
|
38 |
echo "$(PYTHON) $(PWD)/src/zdaemon/zdctl.py \ |
|
39 |
-S schema.xml \
|
|
40 |
-C zdaemon.conf -d \$$*" >> bin/zopectl |
|
41 |
chmod +x bin/zopectl |
|
42 |
||
43 |
test_build: build |
|
44 |
$(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS) |
|
45 |
||
46 |
test_inplace: inplace |
|
47 |
$(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS) |
|
48 |
||
49 |
ftest_build: build |
|
50 |
$(PYTHON) test.py -f $(TESTFLAGS) $(TESTOPTS) |
|
51 |
||
52 |
ftest_inplace: inplace |
|
53 |
$(PYTHON) test.py -f $(TESTFLAGS) $(TESTOPTS) |
|
54 |
||
55 |
# XXX What should the default be?
|
|
56 |
test: test_inplace |
|
57 |
||
58 |
ftest: ftest_inplace |
|
59 |
||
60 |
run: inplace |
|
61 |
PYTHONPATH=$(Z3LIBPATH):$(PYTHONPATH) $(PYTHON) \ |
|
62 |
$(STARTSCRIPT) -C $(CONFFILE) |
|
63 |
||
64 |
debug: principals.zcml |
|
14
by Canonical.com Patch Queue Manager
Add soy to the configuration |
65 |
PYTHONPATH=$(Z3LIBPATH):$(PYTHONPATH) $(PYTHON) -i -c \ |
8
by Canonical.com Patch Queue Manager
Added Soyuz app server start-up and config files |
66 |
"from zope.app import Application;\
|
67 |
app = Application('Data.fs', 'site.zcml')()"
|
|
68 |
||
69 |
clean: |
|
70 |
find . \( -name '*.o' -o -name '*.so' -o -name '*.py[co]' -o -name '*.dll' \) -exec rm -f {} \; |
|
71 |
rm -rf build |
|
72 |
||
73 |
realclean: clean |
|
74 |
rm -f TAGS tags |
|
75 |
$(PYTHON) setup.py clean -a |
|
76 |
||
77 |
zcmldocs: |
|
78 |
PYTHONPATH=`pwd`/src:$(PYTHONPATH) $(PYTHON) \ |
|
79 |
./src/zope/configuration/stxdocs.py \
|
|
80 |
-f ./src/zope/app/meta.zcml -o ./doc/zcml/namespaces.zope.org |
|
81 |
||
82 |
||
83 |
#
|
|
84 |
# Naughty, naughty! How many Zope3 developers are going to have
|
|
85 |
# that directory structure? The 'ctags' package is capable of generating
|
|
86 |
# both emacs-sytle and vi-style tags files from python source; can the
|
|
87 |
# emacs-provided 'etags' not read Python?
|
|
88 |
#
|
|
89 |
TAGS: |
|
90 |
python ~/trunk/Tools/scripts/eptags.py `find . -name \*.py` |
|
91 |
# etags `find . -name \*.py -print`
|
|
92 |
||
93 |
tags: |
|
94 |
ctags -R |
|
95 |
||
96 |
||
2
by Canonical.com Patch Queue Manager
merge stub layout from robert.collins@canonical.com |
97 |
# arch-tag: c5c98418-056f-41e0-896a-6714a77439a8
|