-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (33 loc) · 1 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
all:
./util/setup.sh
with-image:
@if [ -z "$$image" ]; then \
echo -e '\e[31mERROR: You must define image=path/to/image.qcow2\e[0m';\
exit 1; \
fi
./util/setup-with-image.sh $$image
install:
mkdir -p /usr/local/bin
cp hades.sh /usr/local/bin/hades
chmod +x /usr/local/bin/hades
cp util/qemu_monitor.sh /usr/local/bin/hades-monitor
chmod +x /usr/local/bin/hades-monitor
@if ! mkdir /var/local/hades; then \
echo -e '\e[31mERROR: Hades is already installed, refusing to overwrite\e[0m'; \
exit 1; \
fi
mv run/* /var/local/hades/
rmdir run
@echo -e '\e[32m====> Installation complete\e[0m'
@echo -n 'You may now delete this folder if you wish to (but if you want '
@echo 'to set up fast-starting SolidWorks, do that first)'
uninstall:
rm -f /usr/local/bin/hades
rm -f /usr/local/bin/hades-monitor
rm -rf /var/local/hades
clean:
rm -rf run/
solidworks:
echo "#!/bin/sh" > /usr/local/bin/solidworks
echo "hades -loadvm solidworks" > /usr/local/bin/solidworks
chmod +x /usr/local/bin/solidworks