Verified Commit 24287de7 authored by Camil Staps's avatar Camil Staps 🙂

Added builddb run to Makefile; updated Readme

parent 8554afed
BIN:=CloogleServer search builddb
PRJ:=$(addsuffix .prj,$(BIN))
DB=types.db
MAN:=builddb.1 # Others don't have --help/--version # $(addsuffix .1,$(BIN))
CPM:=cpm
SED:=sed
......@@ -7,7 +8,7 @@ SED:=sed
.SECONDARY: $(PRJ)
.PHONY: all
all: $(BIN)
all: $(BIN) $(DB)
man: $(MAN)
......@@ -26,6 +27,10 @@ man: $(MAN)
$(SED) -i 's/\([ \t]\+Path:[ \t]\+\){Project}$$/&\n\1{Application}\/lib\/ArgEnv\/\n\1{Application}\/lib\/TCPIP\//' $@
$(SED) -i 's/\($(basename $@)\).exe/\1/' $@
$(SED) -i 's/\(Output:[ \t]\+\)ShowConstructors/\1NoConsole/' $@
$(SED) -i 's/\(HeapSize:[ \t]\+\)2097152/\110485760/' $@
$(DB): builddb
./builddb > $(DB)
clean:
$(RM) -r 'Clean System Files' $(BIN) $(PRJ) $(MAN)
$(RM) -r 'Clean System Files' $(BIN) $(PRJ) $(MAN) $(DB)
......@@ -14,19 +14,13 @@ A Clean hoogle clone. Use at your own risk. Live version available
- Add `env/envs.linux64` to your `$CLEAN_HOME/etc/IDEEnvs`.
- Run `make`
- Run `make`. This builds all necessary binaries and runs `builddb`, which
creates a file `types.db` which holds the internal database of functions and
their types. If you add new libraries later on, you need to rerun `builddb`.
- Run
- You can then run the Clean backend with:
$ ./builddb -h 10M > types.db
This creates a file `types.db` which holds the internal database of functions
and their types. If you later add new libraries, you need to rerun `builddb`.
- You can then build and run the Clean backend with:
$ cpm project CloogleServer.prj build
$ ./CloogleServer -h 10M 31215 < types.db
$ ./CloogleServer 31215 < types.db
In this example, the server uses port 31215. You need to use the same
settings in `api.php`.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment