-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
74 lines (57 loc) · 1.57 KB
/
Makefile
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
# PREFIX=/var/is/conf
# tmpdir=/tmp/isconf-make.tmp
version=`cat version`
revision=`cat revision`
tarname=isconf-$(version).$(revision)
tarball=/tmp/$(tarname).tar.gz
pubdoc=/var/trac/isconf/pub/doc/$(version).$(revision)
all:
README.md: doc/isconf.t2t.in doc
pandoc -o README.md doc/isconf.html
install:
python ./setup.py install
# chmod might be needed with some versions of distutils
# chmod 755 /usr/bin/isconf
# XXX should be called by a script which does the snap and untar
XXXupgrade:
isconf make install
isconf exec chmod 755 /usr/bin/isconf
isconf reboot
isconf ci
start:
/etc/init.d/isconf stop
sleep 1
/etc/init.d/isconf start
sleep 5
ctags:
# requires Exuberant ctags
# ctags --language-force=python bin/isconf
cd bin; ctags --language-force=python isconf
XXXtar:
./update-revision
rm -rf $(tmpdir)
mkdir -p $(tmpdir)/$(tarname)
cp -a . $(tmpdir)/$(tarname)
tar -C $(tmpdir) --exclude=*.pyc --exclude=*.swp --exclude=*.swo --exclude=.coverage -czvf $(tarball) $(tarname)
rm -rf $(tmpdir)
sdist: uprev doc
rm -f MANIFEST
python setup.py sdist
# mv dist/$(tarname).tar.gz $(tarball)
XXXship: sdist
scp $(tarball) [email protected]:/var/trac/isconf/pub
ssh [email protected] mkdir -p $(pubdoc)
rsync -e ssh -avz doc/ [email protected]:$(pubdoc)
# XXX 'latest' is wrong if we're working on a patch branch
ssh [email protected] rsync -avz $(pubdoc)/ /var/trac/isconf/pub/doc/latest/
pypi: sdist
python setup.py sdist upload -r pypi
test:
cd t && time make
uprev:
./update-revision
doc: FORCE
cd doc && make
%:
cd t && $(MAKE) $*
FORCE: