-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
48 lines (41 loc) · 1.21 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
#!make
ifeq ($(OS), Windows_NT)
CRAFTOS := craftos-pc
CLEANUP := del /s /q
else
CRAFTOS := craftos
CLEANUP := rm -rf
endif
run:
$(CRAFTOS) \
--id 2828 \
--exec "shell.run('clear')shell.run('youcube')" \
--mount-ro /=./src
illuaminate-lint:
illuaminate lint
illuaminate-doc-gen:
illuaminate doc-gen
cleanup:
$(CLEANUP) doc || true
install-illuaminate:
ifeq ($(OS), Windows_NT)
if not exist C:\bin mkdir C:\bin
curl -L -o C:\bin\illuaminate.exe \
https://squiddev.cc/illuaminate/bin/latest/illuaminate-windows-x86_64.exe
reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" \
/v LongPathsEnabled | find "1" > nul || \
echo Running enable-long-paths might be necessary if you have a long path environment!
echo Enter password to add illuaminate to path
runas /user:$(USERNAME) 'setx /m PATH "$(PATH);C:\bin"'
else
wget https://squiddev.cc/illuaminate/bin/latest/illuaminate-linux-x86_64 \
-O /usr/bin/illuaminate
chmod +x /usr/bin/illuaminate
endif
ifeq ($(OS), Windows_NT)
enable-long-paths:
echo You need to reboot your system after this!
runas /user:$(USERNAME) \
'reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" \
/v LongPathsEnabled /t REG_DWORD /d 1 /f'
endif