added check in Makefile for populated refptr directory
This commit is contained in:
parent
c02077275d
commit
ed0754d4e7
11
Makefile
11
Makefile
@ -7,7 +7,16 @@ DEPS := $(CXXDEPS)
|
||||
OBJS := $(CXXOBJS)
|
||||
LDFLAGS := -lpcre
|
||||
|
||||
all: $(TARGET)
|
||||
all: submodule_check $(TARGET)
|
||||
|
||||
.PHONY: submodule_check
|
||||
submodule_check:
|
||||
@if [ ! -e refptr/refptr.h ]; then \
|
||||
echo Error: \"refptr\" folder is not populated.; \
|
||||
echo Perhaps you forgot to do \"git checkout --recursive\"?; \
|
||||
echo You can remedy the situation with \"git submodule update --init\".; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CXX) -o $@ $^ $(LDFLAGS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user