Skip to content

Commit

Permalink
fix calling individual targets
Browse files Browse the repository at this point in the history
(broken in 82af922)

Otherwise commands like `make i2p` will fail.
  • Loading branch information
kytvi2p committed Dec 30, 2014
1 parent 472c5f5 commit 2ed99ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ed99ba

Please sign in to comment.