From 2d433a9b43cfdabe4a76a29a4a352b6eb93be3a2 Mon Sep 17 00:00:00 2001 From: Will Date: Sat, 6 Feb 2021 08:38:22 +0900 Subject: [PATCH] build bytecode.o from C source --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 343e0bb..8654ea0 100644 --- a/Makefile +++ b/Makefile @@ -59,9 +59,9 @@ $(OBJ): config.h Makefile $(DEPS) | $(ODIR) $(ODIR): @mkdir -p $@ -$(ODIR)/bytecode.o: src/wrk.lua +$(ODIR)/bytecode.c: src/wrk.lua $(DEPS) @echo LUAJIT $< - @$(SHELL) -c 'PATH=obj/bin:$(PATH) luajit -b $(CURDIR)/$< $(CURDIR)/$@' + @$(SHELL) -c 'PATH="obj/bin:$(PATH)" luajit -b "$(CURDIR)/$<" "$(CURDIR)/$@"' $(ODIR)/version.o: @echo 'const char *VERSION="$(VER)";' | $(CC) -xc -c -o $@ -