summaryrefslogtreecommitdiffhomepage
path: root/contrib/luacurses/Makefile
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-10 12:22:22 +0000
committerSteven Barth <steven@midlink.org>2008-09-10 12:22:22 +0000
commitba6928dce0f136babb7184c0fdad8a205489995b (patch)
treed60888ac5fdd99a3da8b4c69ef024d00d9a33ed6 /contrib/luacurses/Makefile
parent52c9166a7abe947662fe03d1051e2d05e64f4f18 (diff)
Avoid uneccessary recompilation of contrib module
Diffstat (limited to 'contrib/luacurses/Makefile')
-rw-r--r--contrib/luacurses/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/luacurses/Makefile b/contrib/luacurses/Makefile
index 2be19c5113..2ae73bf48e 100644
--- a/contrib/luacurses/Makefile
+++ b/contrib/luacurses/Makefile
@@ -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