Skip to content

Commit

Permalink
rename uscript.inc -> uscript.inc.c (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
adsr committed Dec 17, 2024
1 parent c16d956 commit a92840b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion uscript.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
File renamed without changes.

0 comments on commit a92840b

Please sign in to comment.