commit d1d723d2e2133f07e8dedfacea2c941c01310b8e parent 445d998e54a006035c794d48e7c6011f54eecfd6 Author: Michael Savage <mikejsavage@gmail.com> Date: Tue Jan 3 20:32:24 +0200 Don't build everything twice after make clean Diffstat:
rules.mk | | | 7 | ++----- |
diff --git a/rules.mk b/rules.mk @@ -22,8 +22,9 @@ $(MODULES): %.so: $(COMMON_OBJS) # Build *.o from *.cc # The -M* stuff is for generating dependency lists -%.o: %.cc .deps +%.o: %.cc @printf "\e[1;32mbuilding $<\e[0m\n" + @mkdir -p .deps $(CXX) -c -o $@ $< -MMD -MP -MF .deps/$(subst /,_,$*).d $(CXXFLAGS) $(WARNINGS) # Generate visitor headers @@ -31,10 +32,6 @@ visitors/%.h: @mkdir -p visitors scripts/gen_visitors.lua $^ > $@ -# Make sure .deps exists -.deps: - mkdir -p .deps - clean: rm -f $(BINS) *.o rng/*.o server/*.o *.a *.so test_lockfree rm -rf visitors