-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
49 lines (37 loc) · 1.19 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
DESTDIR=/
.PHONY: all ui install
all: ui
ui:
$(MAKE) -C src
CORE=commands.py \
device.py \
__init__.py \
progress_gtk.py \
progress.glade \
progress_qt.py \
ui_progress.py \
progress_text.py \
reader_cresta.py \
reader.py \
reader_schwinn.py \
utils.py \
writer_csv.py
EXTRA=__init__.py \
writer_sqlite.py
SRC=csv2tcx.py \
download.py \
settings.py
install:
mkdir -p $(DESTDIR)/usr/share/schwinn810
install -m 0755 $(addprefix src/, $(SRC)) $(DESTDIR)/usr/share/schwinn810/
mkdir -p $(DESTDIR)/usr/share/schwinn810/core
install -m 0644 $(addprefix src/core/, $(CORE)) $(DESTDIR)/usr/share/schwinn810/core/
mkdir -p $(DESTDIR)/usr/share/schwinn810/extra
install -m 0644 $(addprefix src/extra/, $(EXTRA)) $(DESTDIR)/usr/share/schwinn810/extra/
mkdir -p $(DESTDIR)/usr/share/schwinn810/web
install -m 0755 src/web/mmf.py src/web/tcx2web.py $(DESTDIR)/usr/share/schwinn810/web/
mkdir -p $(DESTDIR)/usr/share/schwinn810/web/antd
install -m 0644 src/web/antd/*.py src/web/antd/LICENSE $(DESTDIR)/usr/share/schwinn810/web/antd/
mkdir -p $(DESTDIR)/usr/bin
install -m 0755 linux/schwinn810 $(DESTDIR)/usr/bin/
install -m 0755 linux/babelize.sh linux/schwinn810-tray.py $(DESTDIR)/usr/share/schwinn810/