This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
57 lines (56 loc) · 1.53 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
50
51
52
53
54
55
56
57
EFLAGS=""
cygwin:
@cd ./c && make EFLAGS="-DCYGWIN $(EFLAGS)"
@echo Done
@echo -n Moving ./c/vesta ./bin/vesta...
@mv ./c/vesta ./bin/vesta
@echo " Completed."
all:
@echo Buliding Vesta...
@cd ./c && make EFLAGS="$(EFLAGS)"
@echo Done
@echo -n Moving ./c/vesta ./bin/vesta...
@mv ./c/vesta ./bin/vesta
@echo " Completed."
opt-all:
@echo Buliding Vesta...
@cd ./c && make EFLAGS="$(EFLAGS) -O2"
@echo Done
@echo -n Moving ./c/vesta ./bin/vesta...
@mv ./c/vesta ./bin/vesta
@echo " Completed."
build:
@echo "Building via bin/build script"
@sh ./bin/build
@echo " Completed"
rt:
@echo Buliding Runtime...
@cd ./c && make rt
@echo Done
@echo " Completed."
clean:
@echo Removing object files...
@cd ./c && make clean
clobber:
@echo Removing all files
@cd ./c && make clobber
@rm -f ./bin/vesta
@echo "Done."
init:
@echo -n Initalizing Digamma environment in ~
@[ ! -d ~/.digamma ] && mkdir ~/.digamma
@[ ! -d ~/.digamma/lib ] && mkdir ~/.digamma/lib
@[ ! -d ~/.digamma/anaxagoras ] && mkdir -p ~/.digamma/anaxagoras/notes
@[ ! -d ~/.digamma/bin ] && mkdir ~/.digamma/bin
@echo "Done."
install:
@echo -n "Installing files... "
@[ -d ~/.digamma/bin ] || mkdir -p ~/.digamma/bin
@[ -d ~/.digamma/bin ] && cp bin/vesta ~/.digamma/bin
@[ -d ~/bin ] && ln -s ~/.digamma/bin/vesta ~/bin/vesta || echo "~/bin does not exist"
@[ -d ~/.digamma ] && cp scheme/prelude.ss ~/.digamma/prelude.ss
@echo "Done."
install-prelude:
@echo -n "Installing prelude... "
@[ -d ~/.digamma ] && cp scheme/prelude.ss ~/.digamma/prelude.ss
@echo "Done."