-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (20 loc) · 718 Bytes
/
Makefile
File metadata and controls
30 lines (20 loc) · 718 Bytes
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
.PHONY: build desktop
VERSION = 0.1.2
SRCS = s2p_view/about.py s2p_view/layout.py s2p_view/main.py s2p_view/__init__.py __main__.py
s2p-view: s2p-view.zip
echo "#!/usr/bin/env python3" | cat - s2p-view.zip > s2p-view
chmod +x s2p-view
s2p-view.zip: ${SRCS}
tar -caf $@ ${SRCS}
build: s2p_view/about.py s2p_view/layout.py
s2p_view/about.py: about.imm
sed -e 's/@VERSION@/${VERSION}/' about.imm > $@
about.imm: about.ui
pyuic5 about.ui -o $@
s2p_view/layout.py: layout.imm
sed -e 's/FigureCanvas(.*)/FigureCanvas(self.fig)/' layout.imm > $@
layout.imm: layout.ui
pyuic5 layout.ui -o $@
desktop:
xdg-mime install mime-x-snp.xml
xdg-desktop-menu install s2p-view.desktop && xdg-desktop-menu forceupdate