... | ... | @@ -17,31 +17,25 @@ Do these things in the `$(TOP)` directory. |
|
|
|
|
|
- **`make clean`**, **`make distclean`**: various levels of cleanery.
|
|
|
|
|
|
### Build just the compiler
|
|
|
### Clean and rebuild just the compiler
|
|
|
|
|
|
|
|
|
Do these things in the `$(TOP)/compiler` directory.
|
|
|
|
|
|
- **`make rebuild`**, **`make rebuild stage=2`**. This just builds the stage1 or stage2 compiler respectively.
|
|
|
|
|
|
|
|
|
How to clean selectively? I tried 'make clean stage=2' but I think that deleted my stage1 files too.
|
|
|
- `make clean stage=2`, `make boot stage=2`, `make stage=2`. This cleans, boots and builds the stage 2 compiler. You can do the same for the other stages. Note the first command is rarely necessary, and you normally don't need the second one either.
|
|
|
|
|
|
### Build libraries
|
|
|
|
|
|
|
|
|
Do these things in `$(TOP)/libraries` directory.
|
|
|
|
|
|
- Build all libraries
|
|
|
- Build just one library
|
|
|
- Clean all libraries
|
|
|
- Clean just one library
|
|
|
|
|
|
|
|
|
Do you do the selective work in `libraries/` or in `libraries/haskell98/` (say)?
|
|
|
- Build all libraries: `make`
|
|
|
- Build just the `foo` library: `make make.library.foo`. You need to `make remake.library.foo` if you need clean or reconfigure first, e.g. if you changed the module imports.
|
|
|
- Clean all libraries: `make clean`
|
|
|
- Clean just the `foo` library: `make clean.library.foo`
|
|
|
|
|
|
|
|
|
Disabling a library you don't want to build. (Mess with SUBDIRS?)
|
|
|
It's not possible to stop the build system from trying to build a boot library, other than fiddling with SUBDIRS in `libraries/Makefile`.
|
|
|
|
|
|
### Testing
|
|
|
|
... | ... | |