contrib, build: bundle LuaSrcDiet and make it available in build targets
[project/luci.git] / contrib / luacurses / Makefile
index 2be19c5..2ae73bf 100644 (file)
@@ -2,7 +2,9 @@ include ../../build/module.mk
 include ../../build/config.mk
 include ../../build/gccconfig.mk
 
-compile:
+compile: dist$(LUA_LIBRARYDIR)/curses.so
+       
+dist$(LUA_LIBRARYDIR)/curses.so:
        mkdir -p dist$(LUA_LIBRARYDIR)
        $(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) $(SHLIB_FLAGS) -pedantic \
        -Wall $(FPIC) $(LUA_CFLAGS) -o dist$(LUA_LIBRARYDIR)/curses.so src/curses.c src/luacurses.c