mirror of https://github.com/k0kubun/xremap
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
583 B
Makefile
21 lines
583 B
Makefile
current_dir := $(shell pwd)
|
|
CSRCS := $(wildcard tools/xkremap/*.[ch])
|
|
MRBSRCS := $(wildcard mrblib/xkremap/*.rb)
|
|
MRBCSRCS := $(wildcard src/*.[ch])
|
|
.PHONY: all clean
|
|
|
|
all: xkremap
|
|
|
|
clean:
|
|
rm -rf mruby/build/host
|
|
|
|
xkremap: mruby/build/host/bin/xkremap
|
|
cp mruby/build/host/bin/xkremap xkremap
|
|
|
|
mruby:
|
|
curl -L --fail --retry 3 --retry-delay 1 https://github.com/mruby/mruby/archive/1.2.0.tar.gz -s -o - | tar zxf -
|
|
mv mruby-1.2.0 $@
|
|
|
|
mruby/build/host/bin/xkremap: mruby build_config.rb $(CSRCS) $(MRBSRCS) $(MRBCSRCS)
|
|
cd mruby && MRUBY_CONFIG="$(current_dir)/build_config.rb" make
|