diff --git a/Makefile b/Makefile index 732ded7..453b1b9 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ mle_ldflags:=$(LDFLAGS) mle_dynamic_libs:=-lpcre2-8 -llua5.4 mle_static_libs:=vendor/pcre2/libpcre2-8.a vendor/lua/liblua5.4.a mle_ldlibs:=-lm $(LDLIBS) -mle_objects:=$(patsubst %.c,%.o,$(wildcard *.c)) +mle_objects:=$(patsubst %.c,%.o,$(filter-out %.inc.c,$(wildcard *.c))) mle_objects_no_main:=$(filter-out main.o,$(mle_objects)) mle_func_tests:=$(wildcard tests/func/test_*.sh)) mle_unit_tests:=$(patsubst %.c,%,$(wildcard tests/unit/test_*.c)) @@ -65,7 +65,7 @@ install: mle install -v -m 755 mle $(DESTDIR)$(prefix)/bin/mle uscript: - php uscript.inc.php >uscript.inc + php uscript.inc.php >uscript.inc.c clean_quick: rm -f mle $(mle_objects) $(mle_unit_test_objects) $(mle_unit_tests) $(mle_unit_test_all) diff --git a/uscript.c b/uscript.c index 1985c76..5684122 100644 --- a/uscript.c +++ b/uscript.c @@ -47,7 +47,7 @@ static void lua_pushpointer(lua_State *L, void *ptr); static int luaL_checkfunction(lua_State *L, int arg); static int luaopen_mle(lua_State *L); -#include "uscript.inc" +#include "uscript.inc.c" // Run uscript uscript_t *uscript_run(editor_t *editor, char *path) { diff --git a/uscript.inc b/uscript.inc.c similarity index 100% rename from uscript.inc rename to uscript.inc.c