-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
all: jou.exe | ||
|
||
config.jou: | ||
echo "# auto-generated by Makefile" > config.jou | ||
echo "@public" >> config.jou | ||
echo "def get_jou_clang_path() -> byte*:" >> config.jou | ||
echo " return NULL" >> config.jou | ||
|
||
jou_bootstrap.exe: bootstrap.sh | ||
./bootstrap.sh | ||
|
||
jou.exe: jou_bootstrap.exe config.jou $(wildcard compiler/*.jou compiler/*/*.jou) | ||
jou.exe: jou_bootstrap.exe $(wildcard compiler/*.jou compiler/*/*.jou) | ||
rm -rf compiler/jou_compiled && ./jou_bootstrap.exe -o jou.exe --linker-flags "$(wildcard libs/lib*.a)" compiler/main.jou | ||
|
||
# Does not delete tmp/bootstrap_cache because bootstrapping is slow. | ||
.PHONY: clean | ||
clean: | ||
bash -O extglob -c "rm -rvf tmp/!(bootstrap_cache)" | ||
rm -vf *.exe config.jou | ||
rm -vf *.exe | ||
find . -name jou_compiled -print -exec rm -rf '{}' + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters