-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
35 lines (32 loc) · 1.37 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
DESTDIR =
all:
make -C docs html
#make -C docs/misc all
# make in subdirectory SEELablet-apps-master if it is there
[ ! -d SEELablet-apps-master ] || make -C SEELablet-apps-master $@ DESTDIR=$(DESTDIR)
python setup.py build
python3 setup.py build
clean:
rm -rf docs/_*
# make in subdirectory SEELablet-apps-master if it is there
[ ! -d SEELablet-apps-master ] || make -C SEELablet-apps-master $@ DESTDIR=$(DESTDIR)
rm -rf SEEL.egg-info build
find . -name "*~" -o -name "*.pyc" -o -name "__pycache__" | xargs rm -rf
IMAGEDIR=$(DESTDIR)/usr/share/doc/seelablet-common/images
install:
# make in subdirectory SEELablet-apps-master if it is there
[ ! -d SEELablet-apps-master ] || make -C SEELablet-apps-master $@ DESTDIR=$(DESTDIR)
# install documents
install -d $(DESTDIR)/usr/share/doc/seelablet
#cp -a docs/_build/html $(DESTDIR)/usr/share/doc/seelablet
#cp docs/misc/build/*.html $(DESTDIR)/usr/share/doc/seelablet/html
# create ditributions for Python2 and Python3
python setup.py install --install-layout=deb \
--root=$(DESTDIR)/ --prefix=/usr
python3 setup.py install --install-layout=deb \
--root=$(DESTDIR)/ --prefix=/usr
# rules for udev
mkdir -p $(DESTDIR)/lib/udev/rules.d
install -m 644 proto.rules $(DESTDIR)/lib/udev/rules.d/99-seelablet
# fix a few permissions
find $(DESTDIR)/usr/share/seelablet/seel_res -name auto.sh -exec chmod -x {} \;