forked from mrubyc/mrubyc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (30 loc) · 734 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
#
# mruby/c Makefile
#
# Copyright (C) 2015,2016 Kyushu Institute of Technology.
# Copyright (C) 2015,2016 Shimane IT Open-Innovation Center.
#
# This file is distributed under BSD 3-Clause License.
#
all: mrubyc_lib mrubyc_bin
mrubyc_lib:
cd src ; make all
mrubyc_bin:
cd sample_c ; make all
clean:
cd src ; make clean
cd sample_c ; make clean
package: clean
@LANG=C ;\
TARGET="mruby-c_`head -n1 Version`" ;\
if [ -n "$$MRUBYC_VERSION" ] ;\
then TARGET="mruby-c_$$MRUBYC_VERSION" ;\
fi ;\
echo Making \"$$TARGET.tgz\" ;\
mkdir -p pkg/$$TARGET ;\
cp -Rp src doc sample_c sample_ruby auto_test README.md Makefile pkg/$$TARGET ;\
cd pkg ;\
tar cfz ../$$TARGET.tgz $$TARGET ;\
cd .. ;\
rm -Rf pkg ;\
echo Done.