From 8bf7a27dc4c10f0118870121d7f22cf40f8e9b7e Mon Sep 17 00:00:00 2001 From: bookug Date: Thu, 1 Nov 2018 14:54:28 +0800 Subject: [PATCH] fix: incomplete dependency in makefile, now multithreading compilation is supported well --- README.md | 5 +++-- makefile | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 32fcd99..58ada17 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,9 @@ This system is really user-friendly and you can pick it up in several minutes. R - fork this repository in your github account -Then you need to compile the project, just type `make` in the gStore root directory, then all executables will be generated. -(For faster compiling speed, use `make -j4` instead) +Then you need to compile the project, for the first time you need to type `make pre` to prepare the `ANTLR` library and some Lexer/Parser programs. +Later you do not need to type this command again, just use the `make` command in the home directory of gStore, then all executables will be generated. +(For faster compiling speed, use `make -j4` instead, using how many threads is up to your machine) To check the correctness of the program, please type `make test` command. The first strategy is suggested to get the source code because you can easily acquire the updates of the code by typing `git pull` in the home directory of gStore repository. diff --git a/makefile b/makefile index a1a6433..80c6b41 100644 --- a/makefile +++ b/makefile @@ -523,7 +523,7 @@ test: @bin/update_test > /dev/null clean: - rm -rf lib/libantlr.a + #rm -rf lib/libantlr.a $(MAKE) -C api/socket/cpp/src clean $(MAKE) -C api/socket/cpp/example clean $(MAKE) -C api/socket/java/src clean @@ -543,7 +543,6 @@ clean: dist: clean rm -rf *.nt *.n3 .debug/*.log .tmp/*.dat *.txt *.db rm -rf tools/libantlr3c-3.4 lib/libantlr.a Parser/Sparql* - #rm -rf Parser/SparqlLexer* Parser/SparlParser.cpp rm -rf cscope* .cproject .settings tags rm -rf *.info rm -rf backups/*.db