diff options
author | Steven Barth <steven@midlink.org> | 2009-11-14 13:41:31 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-11-14 13:41:31 +0000 |
commit | b882bdeb04adc817a477009c689ec3b79151bf71 (patch) | |
tree | 9d3f417cdbe9f66346083c507467411985e70a5e | |
parent | 0784b7b9d512602f519aa7c0e826f97ef5ca25ff (diff) |
Avoid unnecessary compiling
-rw-r--r-- | contrib/uci/Makefile | 6 | ||||
-rw-r--r-- | libs/lmo/Makefile | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/contrib/uci/Makefile b/contrib/uci/Makefile index 04aa38b3a..b39278789 100644 --- a/contrib/uci/Makefile +++ b/contrib/uci/Makefile @@ -20,12 +20,10 @@ include ../../build/module.mk $(UCI_FILE): wget -O $@ "$(UCI_URL)" || rm -f $@ -$(UCI_PATCHDIR)/series: - (cd $(UCI_PATCHDIR); ls *.patch | sort > series) - -$(UCI_DIR)/.prepared: $(UCI_PATCHDIR)/series $(UCI_FILE) +$(UCI_DIR)/.prepared: $(UCI_FILE) rm -rf $(UCI_DIR) tar xvfz $(UCI_FILE) + (cd $(UCI_PATCHDIR); ls *.patch | sort > series) || true [ -f "$(UCI_PATCHDIR)/series" ] && while read patch; do \ patch -d $(UCI_DIR) -p1 < $(UCI_PATCHDIR)/$$patch; \ done < $(UCI_PATCHDIR)/series || true diff --git a/libs/lmo/Makefile b/libs/lmo/Makefile index a15390cbe..0a8487ad3 100644 --- a/libs/lmo/Makefile +++ b/libs/lmo/Makefile @@ -19,7 +19,7 @@ LMO_LUALIB_OBJ = src/lmo_lualib.o %.o: %.c $(COMPILE) $(LMO_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $< -compile: build-clean $(LMO_COMMON_OBJ) $(LMO_PO2LMO_OBJ) $(LMO_LOOKUP_OBJ) $(LMO_LUALIB_OBJ) +compile: $(LMO_COMMON_OBJ) $(LMO_PO2LMO_OBJ) $(LMO_LOOKUP_OBJ) $(LMO_LUALIB_OBJ) $(LINK) $(SHLIB_FLAGS) $(LMO_LDFLAGS) -o src/$(LMO_SO) \ $(LMO_COMMON_OBJ) $(LMO_LUALIB_OBJ) $(LINK) $(LMO_LDFLAGS) -o src/$(LMO_PO2LMO) $(LMO_COMMON_OBJ) $(LMO_PO2LMO_OBJ) |