medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 6c66cf05eb77bcd647b3c72cdd98747c2d1ec711
parent 5f565a3e630dba210166c34db596e035bad69c3b
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Sep 28 22:08:00 +0300

Create/remove .deps as appropriate

Diffstat:
rules.mk | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/rules.mk b/rules.mk @@ -22,12 +22,17 @@ $(MODULES): %.so: $(COMMON_OBJS) # Build *.o from *.cc # The -M* stuff is for generating dependency lists -%.o: %.cc +%.o: %.cc .deps @echo -e "\e[1;32mbuilding $<\e[0m" $(CXX) -c -o $@ $< -MMD -MP -MF .deps/$(subst /,_,$*).d $(CXXFLAGS) +# Make sure .deps exists +.deps: + mkdir -p .deps + clean: rm -f $(BINS) $(MODULES) *.o *.so $(STB_CCS) test_lockfree + rm -rf .deps lint: oclint \