-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 1.32 KB
/
Makefile
File metadata and controls
42 lines (33 loc) · 1.32 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
clean:
find -type f -name *.pyc -delete
rm -rf dist
rm -rf build
rm -rf easy_phi.egg-info
test:
python -m easy_phi.tests.run_tests
regression_test:
python -m unittest easy_phi.tests.regression_test
run:
python easy_phi/app.py
package:
make clean
#python setup.py register #need only for the first time
python setup.py sdist upload
testpackage:
python setup.py upload -r https://testpypi.python.org/pypi
docs:
mkdocs
install:
python setup.py install
install_dev:
[ -h "/etc/udev/rules.d/99-easy_phi-modules.rules" ] || [ -e "/etc/udev/rules.d/99-easy_phi-modules.rules" ] || cp `pwd`/scripts/99-easy_phi-modules.rules /etc/udev/rules.d/
[ -h "/etc/easy_phi.conf" ] || [ -e "/etc/easy_phi.conf" ] || ln -s `pwd`/scripts/easy_phi.conf /etc/easy_phi.conf
[ -d "/etc/easy_phi" ] || mkdir /etc/easy_phi
[ -h "/etc/easy_phi/widgets.conf" ] || [ -e "/etc/easy_phi/widgets.conf" ] || ln -s `pwd`/scripts/widgets.conf /etc/easy_phi/widgets.conf
[ -h "/etc/easy_phi/modules_conf_patches.conf" ] || [ -e "/etc/easy_phi/modules_conf_patches.conf" ] || ln -s `pwd`/scripts/modules_conf_patches.conf /etc/easy_phi/modules_conf_patches.conf
uninstall:
rm -rf /usr/local/lib/python2.7/dist-packages/easy_phi-0.*
rm -rf /var/www/html/easy_phi
rm -rf /etc/easy_phi
rm /etc/easy_phi.conf
rm /etc/udev/rules.d/99-easy_phi-modules.rules