feat(install): add options to choose which judger component to build

For only web, there is no need to build checkers.
There are so many checkers that will slow down make speed.
Also for some situations, users can build checkers without runners.
This commit is contained in:
Masco Skray 2019-07-16 18:28:00 +08:00
parent d413b746eb
commit 73aec02216
2 changed files with 6 additions and 5 deletions

View File

@ -69,7 +69,7 @@ UOJEOF
#define UOJ_JUDGER_PYTHON3_VERSION "3.6" #define UOJ_JUDGER_PYTHON3_VERSION "3.6"
#define UOJ_JUDGER_FPC_VERSION "3.0.4" #define UOJ_JUDGER_FPC_VERSION "3.0.4"
UOJEOF UOJEOF
make -j$(($(nproc) + 1)) && cd ../../install/web make runner -j$(($(nproc) + 1)) && cd ../../install/web
} }
initProgress(){ initProgress(){

View File

@ -26,10 +26,11 @@ EXE = main_judger \
run/formatter \ run/formatter \
run/run_program \ run/run_program \
run/run_interaction \ run/run_interaction \
builtin/judger/judger \ builtin/judger/judger
$(EXE_CHECKER)
all: $(EXE) all: $(EXE) $(EXE_CHECKER)
runner: $(EXE)
checker: $(EXE_CHECKER)
% : %.cpp % : %.cpp
$(CXX) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $< -o $@ $(CXX) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $< -o $@
@ -45,4 +46,4 @@ main_judger: include
$(EXE_CHECKER): include/testlib.h $(EXE_CHECKER): include/testlib.h
clean: clean:
rm -f $(EXE) rm -f $(EXE) $(EXE_CHECKER)