-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
50 lines (34 loc) · 1.17 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
APPNAME = Slicer4RTN
VERSION = 0.6.0
DEST = /usr/local/bin
DEST_SETTINGS = /usr/share
all::
@echo "make requirements install install-default install-user-defaults deinstall tests clean edit push pull change backup"
requirements::
sudo apt -y install slic3r prusa-slicer cura-engine
install:: install-app install-defaults
install-app::
sudo cp slicer4rtn ${DEST}/
mkdir -p ~/.config/slicer4rtn/ && touch ~/.config/slicer4rtn/slicer4rtn.ini && touch ~/.config/slicer4rtn/slic3r.ini
install-user-defaults::
cd settings/slicers/; tar cfv - . | (cd ~/.config/slicer4rtn/; tar xf -)
install-defaults::
sudo mkdir -p ${DEST_SETTINGS}/slicer4rtn/
cd settings/; tar cfv - . | (cd ${DEST_SETTINGS}/slicer4rtn/; sudo tar xf -)
deinstall::
sudo rm -rf ${DEST}/slicer4rtn ${DEST_SETTINGS}/slicer4rtn/
tests::
cd tests; make
clean::
cd tests; make clean
# -- dev only
edit::
dee4 slicer4rtn Makefile README.md COPYRIGHT LICENSE settings/*.ini tests/Makefile tests/*.scad
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/