Makefile: add 'clean_crystal' target#4268
Conversation
It is useful in compiler development cycle.
$ vim src/... # edit compiler sources (but incomplete)
$ make crystal # oops! maked incompilable compiler...
$ make crystal # failed because compiler does not work
At such time I don't want to use `make clean` because it removes
`libcrystal` and `llvmext` also. I don't want to build C++ files
again, so I added `clean-crystal` target in Makefile. It removes
the files built by `crystal` command. Now, we can use
`make clean_crystal crystal` to recompile `crystal` after removing
compiler itself.
|
I've done something like in my working copy with an additional phony rebuild as But I always wonder if it won't be better to |
|
Compiling a stage 2 compiler with a compiled compiler is very useful (I did it a lot with #4182). |
|
@RX14 Yes. I think so too, and so I don't make |
|
I think this is useful, but I'm a bit worried about naming. Having |
|
@mverzilli the proposed What about |
|
I wrote description for |
|
I think |
|
Fair enough, I'm probably the least experienced with |
It is useful in compiler development cycle.
At such time I don't want to use
make cleanbecause it removeslibcrystalandllvmextalso. I don't want to build C++ files again, so I addedclean-crystaltarget in Makefile. It removes the files built bycrystalcommand. Now, we can usemake clean_crystal crystalto recompilecrystalafter removing compiler itself.