forked from xrg/SpiffGtkWidgets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (42 loc) · 1.36 KB
/
Copy pathMakefile
File metadata and controls
55 lines (42 loc) · 1.36 KB
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
NAME=SpiffGtkWidgets
VERSION=`python setup.py --version`
PACKAGE=$(NAME)-$(VERSION)-1
PREFIX=/usr/local/
DISTDIR=/pub/code/releases/spiff_gtkwidgets
###################################################################
# Project-specific targets.
###################################################################
###################################################################
# Standard targets.
###################################################################
clean:
find . -name "*.pyc" -o -name "*.pyo" | xargs -n1 rm -f
dist-clean: clean
doc:
cd doc; make
install:
python setup.py install --prefix $(PREFIX)
uninstall:
# Sorry, Python's distutils support no such action yet.
tests:
cd tests/$(NAME); \
[ -e run_suite.* ] && ./run_suite.* || [ ! -e run_suite.* ]
###################################################################
# Package builders.
###################################################################
targz:
python setup.py sdist --formats gztar
tarbz:
python setup.py sdist --formats bztar
deb:
debuild -S -sa
cd ..; sudo pbuilder build $(NAME)_$(VERSION)-0ubuntu1.dsc; cd -
dist: targz tarbz
###################################################################
# Publishers.
###################################################################
dist-publish: dist
mkdir -p $(DISTDIR)/
mv dist/* $(DISTDIR)
doc-publish:
cd doc; make publish