-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 920 Bytes
/
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
PYTHON:=`which python`
DESTDIR=/
BUILDIR=$(CURDIR)/debian/ciel
PROJECT=ciel
VERSION=0.1
all:
@ :
dist/.cookie:
rm -rf dist
mkdir -p dist
dist/ciel-$(VERSION).tar.gz: dist/.cookie
$(PYTHON) setup.py sdist
.PHONY: source
source: dist/ciel-$(VERSION).tar.gz
@ :
dist/ciel_%.orig.tar.gz: dist/ciel-%.tar.gz
cp $< $@
.PHONY: debsource
debsource: dist/ciel_$(VERSION).orig.tar.gz
@ :
.PHONY: install
install:
$(PYTHON) setup.py install --root $(DESTDIR)
.PHONY: rpm
rpm:
$(PYTHON) setup.py bdist_rpm #--post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
.PHONY: deb
deb: dist/ciel_$(VERSION).orig.tar.gz
cd dist && rm -rf ciel-$(VERSION) && \
tar -zxvf ciel_$(VERSION).orig.tar.gz && \
cp -r ../debian ciel-$(VERSION) && \
cd ciel-$(VERSION) && debuild -us -uc
.PHONY: clean
clean:
$(PYTHON) setup.py clean
rm -rf dist/ build/ src/python/ciel.egg-info/
find . -name '*.pyc' -delete