mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 11:04:00 +01: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
|
# weaker rule for building files without headers
|
||||||
obj/%.o : %.cpp
|
obj/%.o : %.cpp
|
||||||
|
@test -d obj || mkdir obj
|
||||||
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $<
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $<
|
||||||
|
|
||||||
obj/%.o : %.cpp %.h
|
obj/%.o : %.cpp %.h
|
||||||
|
@test -d obj || mkdir obj
|
||||||
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $<
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $<
|
||||||
|
|
||||||
$(I2PD): $(patsubst %.cpp,obj/%.o,$(DAEMON_SRC))
|
$(I2PD): $(patsubst %.cpp,obj/%.o,$(DAEMON_SRC))
|
||||||
|
@ -48,7 +50,8 @@ ifneq ($(USE_STATIC),yes)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
clean:
|
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)
|
LATEST_TAG=$(shell git describe --tags --abbrev=0 master)
|
||||||
dist:
|
dist:
|
||||||
|
|
Loading…
Reference in a new issue