forked from mesham/epython
-
Notifications
You must be signed in to change notification settings - Fork 5
/
makefile
44 lines (34 loc) · 988 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
42
43
44
all: epiphany
standalone: clean
@cd host; $(MAKE) epython STANDALONE=1
@mv host/epython-host .
standalone-full: clean
@cd host; $(MAKE) full STANDALONE=1
@mv host/epython-host .
epiphany: clean host-build device-build
full: clean host-full device-build
host-build:
@cd host; $(MAKE) epython
@mv host/epython-host .
host-full:
@cd host; $(MAKE) full
@mv host/epython-host .
device-build:
@cd device; $(MAKE)
@mv device/epython-device.srec .
clean:
@cd interpreter; rm -f *.o *.d
@cd host; $(MAKE) clean
@cd device; $(MAKE) clean
install:
@cp epython-host epython-device.srec /usr/bin
@cp epython.sh /usr/bin/epython
@cp parallel.py /usr/include
@cp util.py /usr/include
@echo 'export PYTHONPATH=$$PYTHONPATH:/usr/include:$(shell pwd)' >> ~/.bashrc
@echo "ePython installed, start a new bash session by executing bash before running ePython"
uninstall:
@rm /usr/bin/epython-host
@rm /usr/bin/epython
@rm /usr/include/parallel.py
@rm /usr/include/util.py