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
|
# This file modified from Zope3/Makefile
# Licensed under the ZPL, (c) Zope Corporation and contributors.
PYTHON=python2.3
CONFFILE=soyuz.conf
STARTSCRIPT=runsoyuz.py
TESTFLAGS=-p -v
TESTOPTS=
SETUPFLAGS=
Z3LIBPATH=
check:
.PHONY: check
# XXX What should the default be?
all: inplace runners
# Build in-place
##inplace:
## $(PYTHON) setup.py $(SETUPFLAGS) build_ext -i
##
##build:
## $(PYTHON) setup.py $(SETUPFLAGS) build
inplace:
build:
runners:
echo "#!/bin/sh" > bin/runzope;
echo "exec $(PYTHON) $(STARTSCRIPT) -C $(CONFFILE)" >> bin/runzope;
chmod +x bin/runzope
echo "#!/bin/sh" > bin/zopectl;
echo "$(PYTHON) $(PWD)/src/zdaemon/zdctl.py \
-S schema.xml \
-C zdaemon.conf -d \$$*" >> bin/zopectl
chmod +x bin/zopectl
test_build: build
$(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS)
test_inplace: inplace
$(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS)
ftest_build: build
$(PYTHON) test.py -f $(TESTFLAGS) $(TESTOPTS)
ftest_inplace: inplace
$(PYTHON) test.py -f $(TESTFLAGS) $(TESTOPTS)
# XXX What should the default be?
test: test_inplace
ftest: ftest_inplace
run: inplace
PYTHONPATH=$(Z3LIBPATH):$(PYTHONPATH) $(PYTHON) \
$(STARTSCRIPT) -C $(CONFFILE)
debug: principals.zcml
PYTHONPATH=`pwd`/src:$(PYTHONPATH) $(PYTHON) -i -c \
"from zope.app import Application;\
app = Application('Data.fs', 'site.zcml')()"
clean:
find . \( -name '*.o' -o -name '*.so' -o -name '*.py[co]' -o -name '*.dll' \) -exec rm -f {} \;
rm -rf build
realclean: clean
rm -f TAGS tags
$(PYTHON) setup.py clean -a
zcmldocs:
PYTHONPATH=`pwd`/src:$(PYTHONPATH) $(PYTHON) \
./src/zope/configuration/stxdocs.py \
-f ./src/zope/app/meta.zcml -o ./doc/zcml/namespaces.zope.org
#
# Naughty, naughty! How many Zope3 developers are going to have
# that directory structure? The 'ctags' package is capable of generating
# both emacs-sytle and vi-style tags files from python source; can the
# emacs-provided 'etags' not read Python?
#
TAGS:
python ~/trunk/Tools/scripts/eptags.py `find . -name \*.py`
# etags `find . -name \*.py -print`
tags:
ctags -R
# arch-tag: c5c98418-056f-41e0-896a-6714a77439a8
|