From: Steven Barth Date: Wed, 10 Sep 2008 12:22:22 +0000 (+0000) Subject: Avoid uneccessary recompilation of contrib module X-Git-Tag: 0.9.0~1356 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ba6928dce0f136babb7184c0fdad8a205489995b;p=oweals%2Fluci.git Avoid uneccessary recompilation of contrib module --- diff --git a/contrib/bitlib/Makefile b/contrib/bitlib/Makefile index 6b7c82483..a95da2374 100644 --- a/contrib/bitlib/Makefile +++ b/contrib/bitlib/Makefile @@ -20,7 +20,9 @@ $(BITLIB_DIR)/.prepared: $(BITLIB_FILE) test -f $(BITLIB_DIR)/config.h || cp $(BITLIB_DIR)/config.h.in $(BITLIB_DIR)/config.h touch $@ -compile: $(BITLIB_DIR)/.prepared +compile: $(BITLIB_DIR)/.prepared dist$(LUA_LIBRARYDIR)/bit.so + +dist$(LUA_LIBRARYDIR)/bit.so: mkdir -p dist$(LUA_LIBRARYDIR) $(COMPILE) -DHAVE_CONFIG_H -I$(BITLIB_DIR) -O2 -c $(BITLIB_DIR)/lbitlib.c $(FPIC) $(LUA_CFLAGS) -o $(BITLIB_DIR)/lbitlib.o $(LINK) $(SHLIB_FLAGS) $(LDFLAGS) $(BITLIB_DIR)/lbitlib.o $(LUA_SHLIBS) -lm -ldl -o dist$(LUA_LIBRARYDIR)/bit.so diff --git a/contrib/luacurses/Makefile b/contrib/luacurses/Makefile index 2be19c511..2ae73bf48 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