rui314 / 8cc

A Small C Compiler
MIT License
6.13k stars 740 forks source link

The hardcoded "BUILD_DIR" means `make install` is no use #14

Closed stevenhoneyman closed 9 years ago

stevenhoneyman commented 9 years ago

If you move/remove the source directory after a make install, because the BUILD_DIR has been hardcoded, 8cc tries to use other include dirs (and fails of course).

Maybe this should be the prefix that gets hardcoded, instead? (as an easy fix while still under development)

rui314 commented 9 years ago

Yes there's a problem. But the broader question is if someone ever wants to install this program. I don't think it's that useful. We might want to remove "install" target from Makefile.

rui314 commented 9 years ago

I have removed "install" target from the makefile.