forked from vietjovi/tentakel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (48 loc) · 1.16 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
# $Id: Makefile,v 1.21 2005/03/17 21:55:47 cran Exp $
RELEASEFILES= tentakel.1 \
tentakel.1.html \
INSTALL \
README \
TODO \
PLUGINS \
ChangeLog \
tentakel.conf.example \
Makefile \
py/setup.py \
py/tentakel \
py/lekatnet/__init__.py \
py/lekatnet/config.py \
py/lekatnet/error.py \
py/lekatnet/remote.py \
py/lekatnet/shell.py \
py/lekatnet/tpg.py \
py/lekatnet/plugins/__init__.py \
py/lekatnet/plugins/rsh.py \
py/lekatnet/plugins/ssh.py
PYTHON?= python
PREFIX?= /usr/local
REL= tentakel-2.2
all: configure
configure:
cd py && $(PYTHON) setup.py config
cd py && $(PYTHON) setup.py build
htmldoc:
rm -f tentakel.1.html
groff -Thtml -man tentakel.1 > tentakel.1.html
install: configure
cd py && $(PYTHON) setup.py install --prefix=$(PREFIX)
sudo cp -r py/lekatnet/ /usr/lib/python2.7/site-packages/
release:
rm -rf $(REL)
mkdir $(REL)
tar cf - $(RELEASEFILES) | ( cd $(REL) && tar xf - )
tar czf $(REL).tgz $(REL)
rm -rf $(REL)
regress:
cd py/lekatnet && $(PYTHON) config.py
cd py/lekatnet && $(PYTHON) remote.py
clean:
rm -f *~
rm -f py/{,lekatnet/,lekatnet/plugins/}{*~,*.pyc,*.pyo}
rm -rf py/build
rm -f $(REL).tgz