Skip to content

Commit

Permalink
slightly stricter use of mkdir/rm -rf
Browse files Browse the repository at this point in the history
  • Loading branch information
kytvi2p committed Dec 20, 2014
1 parent b26bc5c commit 993b4c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ api: $(SHLIB)

# weaker rule for building files without headers
obj/%.o : %.cpp
@test -d obj || mkdir obj
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $<

obj/%.o : %.cpp %.h
@test -d obj || mkdir obj
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $<

$(I2PD): $(patsubst %.cpp,obj/%.o,$(DAEMON_SRC))
Expand All @@ -48,7 +50,8 @@ ifneq ($(USE_STATIC),yes)
endif

clean:
rm -fr obj $(I2PD) $(SHLIB)
test -d obj && $(RM) -rf obj
$(RM) -f $(I2PD) $(SHLIB)

LATEST_TAG=$(shell git describe --tags --abbrev=0 master)
dist:
Expand Down

0 comments on commit 993b4c9

Please sign in to comment.