add mklua as git dep
This commit is contained in:
10
Makefile
10
Makefile
@@ -1,5 +1,5 @@
|
||||
# Generated by mklua
|
||||
MKLUA ?= mklua
|
||||
MKLUA ?= ./deps/mklua/mklua
|
||||
CC ?= cc
|
||||
OUTPUT ?= website
|
||||
|
||||
@@ -36,6 +36,7 @@ all: $(OUTPUT)
|
||||
|
||||
clean:
|
||||
rm -fr $(BINDIR) $(MKLUA_OUT) deps/luv
|
||||
rm -fr deps/mklua
|
||||
|
||||
compile_flags.txt:
|
||||
printf -- '$(foreach v,$(CCARGS) $(LDARGS),\n$v)' > compile_flags.txt
|
||||
@@ -43,8 +44,13 @@ compile_flags.txt:
|
||||
$(OUTPUT): $(LIBS) $(MKLUA_OUT) $(SOURCES) | $(dir $(OUTPUT))
|
||||
$(CC) $(CCARGS) $(LDARGS) $^ -o $@
|
||||
|
||||
$(MKLUA_OUT): $(DEPS) | $(dir $(MKLUA_OUT))
|
||||
$(MKLUA_OUT): $(DEPS) | $(dir $(MKLUA_OUT)) $(MKLUA)
|
||||
$(MKLUA) $(MKLUA_FLAGS) $(MKLUA_ENTRY) -o $@
|
||||
|
||||
deps/mklua/mklua:
|
||||
|
||||
$(MKLUA):
|
||||
git submodule update --init deps/mklua
|
||||
make -C deps/mklua
|
||||
%/:
|
||||
mkdir -p $@
|
||||
|
||||
Reference in New Issue
Block a user