mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-23 17:34:21 +00:00
slightly stricter use of mkdir/rm -rf
This commit is contained in:
parent
b26bc5c7f4
commit
993b4c92b0
5
Makefile
5
Makefile
@ -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))
|
||||
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user