forked from foobnix/foobnix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 770 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
#
# Makefile for Foobnix
#
PYVER=`python -c "import sys; print(sys.version[:3])"`
PREFIX ?= /usr/local
DESTDIR ?= ./
all:
python setup.py build
test:
python setup.py test
tarball:
python setup.py sdist
mv dist/foobnix-*.tar.gz $(DESTDIR)
install:
python setup.py install --prefix=$(PREFIX)
clean:
python setup.py clean
rm -rf ./build
find . -name *.pyc -exec rm {} \;
uninstall:
-rm $(PREFIX)/bin/foobnix
-rm -r $(PREFIX)/lib/python${PYVER}/site-packages/foobnix
-rm -r $(PREFIX)/lib/python${PYVER}/site-packages/foobnix-*.egg-info
-rm -r $(PREFIX)/share/foobnix
-find ${PREFIX}/share/locale -name foobnix.mo -exec rm {} \;
-rm $(PREFIX)/share/applications/foobnix.desktop
-rm $(PREFIX)/share/pixmaps/foobnix*
-rm $(PREFIX)/share/man/man1/foobnix*