-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (29 loc) · 900 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
35
36
37
38
39
40
41
APPNAME = Nautilus_Thumbnailer_GCode
VERSION = 0.1.2
all::
@echo "make install deinstall test edit push pull change backup"
requirements::
sudo apt -y install povray
install::
sudo cp gcode2png /usr/local/bin/
sudo cp gcode.thumbnailer /usr/share/thumbnailers/
sudo cp gcode.xml /usr/share/mime/packages/
sudo update-mime-database /usr/share/mime/
rm -rf ~/.cache/thumbnails/fail/
deinstall::
sudo rm -f /usr/local/bin/gcode2png /usr/share/thumbnailers/gcode.thumbnailer /usr/share/mime/packages/gcode.xml
tests::
cd tests; make
clean::
cd tests; make clean
# -- dev only
edit::
dee4 gcode2png Makefile gcode.* README.md tests/Makefile
push::
git push -u origin master
pull::
git pull
change::
git commit -am "..."
backup::
cd ..; tar cfvz ~/Backup/${APPNAME}-${VERSION}.tar.gz ${APPNAME}; scp ~/Backup/${APPNAME}-${VERSION}.tar.gz backup:Backup/