101-Reduce_rebuild_time.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 0527869a72c27bfb25b5f92fdd77a04c39d939db Mon Sep 17 00:00:00 2001
  2. From: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
  3. Date: Sat, 16 Apr 2011 05:51:04 +0200
  4. Subject: [PATCH] Don't rebuild everything when the Makefile's timestamp
  5. changed
  6. ---
  7. Makefile.in | 2 +-
  8. modules/Makefile.in | 4 ++--
  9. 2 files changed, 3 insertions(+), 3 deletions(-)
  10. --- a/Makefile.in
  11. +++ b/Makefile.in
  12. @@ -112,7 +112,7 @@ clean:
  13. distclean: clean
  14. rm -rf $(DISTCLEAN)
  15. -src/%.o: src/%.cpp Makefile include/znc/Csocket.h
  16. +src/%.o: src/%.cpp include/znc/Csocket.h
  17. @mkdir -p .depend src
  18. $(E) Building core object $*...
  19. $(Q)$(CXX) $(CXXFLAGS) -c -o $@ $< -MD -MF .depend/$*.dep -MT $@
  20. --- a/modules/Makefile.in
  21. +++ b/modules/Makefile.in
  22. @@ -112,12 +112,12 @@ install_datadir:
  23. clean:
  24. rm -rf $(CLEAN)
  25. -%.o: %.cpp Makefile
  26. +%.o: %.cpp
  27. @mkdir -p .depend
  28. $(E) Building module $(notdir $(basename $@))...
  29. $(Q)$(CXX) $(MODFLAGS) -c -o $@ $< $($(notdir $(basename $@))CXXFLAGS) -MD -MF .depend/$(notdir $@).dep
  30. -%.so: %.o Makefile
  31. +%.so: %.o
  32. $(E) "Linking module" $(notdir $(basename $@))...
  33. $(Q)$(CXX) $(MODFLAGS) $(LDFLAGS) $(MODLINK) -o $@ $< $($(notdir $(basename $@))LDFLAGS) $(LIBS)