Verified Commit 3ec9f2c8 authored by Camil Staps's avatar Camil Staps
Browse files

Use git version of the compiler

parent b5307d3d
Clean System Files/
......@@ -4,3 +4,6 @@
[submodule "CleanRegex"]
path = CleanRegex
url =
[submodule "compiler"]
path = compiler
url =
compiler: .FORCE
$(MAKE) -j -C compiler/main/Unix
$(MAKE) -j -C compiler/backendC/CleanCompilerSources -f Makefile.linux64
$(RM) compiler/backend/Clean\ System\ Files/backend_library
mkdir -p compiler/backend/Clean\ System\ Files
ln -s ../../backendC/CleanCompilerSources/backend.a compiler/backend/Clean\ System\ Files/backend_library
clean-compiler: clean-compiler/$(REVISION)
svn checkout -r $(REVISION) clean-compiler
$(MAKE) -j -C clean-compiler/main/Unix
$(MAKE) -j -C clean-compiler/backendC/CleanCompilerSources -f Makefile.linux64
$(RM) clean-compiler/backend/Clean\ System\ Files/backend_library
ln -s ../../backendC/CleanCompilerSources/backend.a clean-compiler/backend/Clean\ System\ Files/backend_library
touch clean-compiler/$(REVISION)
......@@ -17,16 +17,15 @@ database, using the common Cloogle types defined by
## Dependencies
The Clean compiler is needed to build the database (not to use it).
Unfortunately, it is [developed on subversion][cocl] which means we can't add
it as a git submodule. To get the latest version of the compiler that this
project is compatible with, run `make clean-compiler`. This rule should always
be run, because it checks itself whether an update is needed. If you depend on
Cloogle in your project, a good rule to add to your Makefile is:
The latest Clean compiler that this library is compatible with is bundled as a
git submodule. However, several object files must be built. This can be done
with `make compiler`. If your project depends on Cloogle, you should add the
following to your `Makefile` to ensure that the compiler is updated when
Cloogle/clean-compiler: .FORCE
$(MAKE) -C Cloogle clean-compiler
Cloogle/compiler: .FORCE
$(MAKE) -C Cloogle compiler
Subproject commit a07b9204a6c0bc338355df3c9af88dbbf76ea517
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