-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (36 loc) · 1.69 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
include Makefile.dirs
LUA = ${CURDIR}/ceu-maker/run/lua53.exe
all: ceu arduino sdl pico winrar
ceu:
mkdir -p ceu-maker/run/ceu/env/
mkdir -p ceu-maker/run/ceu/include/
mkdir -p ceu-maker/samples/
mkdir -p ceu-maker/docs/
cp $(CEU_DIR)/env/* ceu-maker/run/ceu/env/
cp $(CEU_DIR)/include/c.ceu ceu-maker/run/ceu/include/
cp $(CEU_DIR)/docs/manual/v0.30/ceu-v0.30.pdf ceu-maker/docs/
cd $(CEU_DIR)/src/lua && $(LUA) pak.lua lua5.3
cp $(CEU_DIR)/src/lua/ceu ceu-maker/run/ceu.lua
arduino:
cp $(CEU_ARDUINO_DIR)/docs/manual/v0.20/ceu-arduino-v0.20.pdf ceu-maker/docs/
#cp $(CEU_ARDUINO_DIR)/docs/manual/v0.30/ceu-arduino-v0.30.pdf ceu-maker/docs/
rm -Rf ceu-maker/samples/ceu-arduino/
mkdir -p ceu-maker/samples/ceu-arduino/
cp -Rf $(CEU_ARDUINO_DIR)/samples/* ceu-maker/samples/ceu-arduino/
cp -Rf $(CEU_ARDUINO_DIR)/include/arduino/ ceu-maker/run/ceu/include/
rm -Rf ceu-maker/run/ceu/env/arduino/
mkdir ceu-maker/run/ceu/env/arduino/
cp -Rf $(CEU_ARDUINO_DIR)/env/ ceu-maker/run/ceu/env/arduino/
sdl:
cp -Rf $(CEU_SDL_DIR)/include/sdl/ ceu-maker/run/ceu/include/
pico:
cp $(CEU_PICO_DIR)/docs/manual/v0.30/pico-ceu-v0.30.pdf ceu-maker/docs/
rm -Rf ceu-maker/samples/pico-ceu/
mkdir -p ceu-maker/samples/pico-ceu/
cp -Rf $(CEU_PICO_DIR)/samples/* ceu-maker/samples/pico-ceu/
cp -Rf $(CEU_PICO_DIR)/include/pico/ ceu-maker/run/ceu/include/
cp $(CEU_PICO_DIR)/pico.ceu ceu-maker/run/ceu/
winrar:
mkdir -p releases
WinRAR/WinRAR.exe a -zWinRAR/setup_comment.txt -r -sfx -iiconceu-maker/cib_192.ico releases/ceu-maker.exe "ceu-maker/*"
.PHONY: ceu arduino sdl pico winrar