From 2ed99ba2458831fdeefda7fecedb4b3e1cf2d39a Mon Sep 17 00:00:00 2001 From: Kill Your TV Date: Tue, 30 Dec 2014 13:25:17 +0000 Subject: [PATCH] fix calling individual targets (broken in 82af922b406ea4b7220791672cd3686201b0ecb3) Otherwise commands like `make i2p` will fail. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 5f2e12dd..87a55fdb 100644 --- a/Makefile +++ b/Makefile @@ -37,10 +37,12 @@ api: $(SHLIB) ## custom FLAGS to work at build-time. deps: + @test -d obj || mkdir obj $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) -MM *.cpp > $(DEPS) @sed -i -e '/\.o:/ s/^/obj\//' $(DEPS) obj/%.o : %.cpp + @test -d obj || mkdir obj $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $< # '-' is 'ignore if missing' on first run