2011-04-19 15:11:02 +00:00
|
|
|
From 94aff4c3389111fc85054eb06b40bea26a216d0c Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
|
|
|
|
Date: Sat, 16 Apr 2011 05:51:04 +0200
|
|
|
|
Subject: [PATCH] Don't rebuild everything when the Makefile's timestamp changed
|
|
|
|
|
|
|
|
---
|
|
|
|
Makefile.in | 2 +-
|
|
|
|
modules/Makefile.in | 2 +-
|
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
--- a/Makefile.in
|
|
|
|
+++ b/Makefile.in
|
|
|
|
@@ -96,7 +96,7 @@ clean:
|
|
|
|
distclean: clean
|
|
|
|
rm -rf $(DISTCLEAN)
|
|
|
|
|
|
|
|
-%.o: %.cpp Makefile
|
|
|
|
+%.o: %.cpp
|
|
|
|
@mkdir -p .depend
|
|
|
|
$(E) Building $@...
|
|
|
|
$(Q)$(CXX) $(CXXFLAGS) -c -o $@ $< -MMD -MF .depend/$@.dep
|
|
|
|
--- a/modules/Makefile.in
|
|
|
|
+++ b/modules/Makefile.in
|
2012-01-23 15:52:32 +00:00
|
|
|
@@ -114,7 +114,7 @@ install_datadir:
|
2011-04-19 15:11:02 +00:00
|
|
|
clean:
|
|
|
|
rm -rf $(CLEAN)
|
|
|
|
|
|
|
|
-%.so: %.cpp Makefile
|
|
|
|
+%.so: %.cpp
|
|
|
|
@mkdir -p .depend
|
|
|
|
@mkdir -p extra
|
|
|
|
$(E) Building $(if $(filter %extra/,$(dir $<)),extra )module $(notdir $(basename $@))...
|