Browse Source

makefile: properly fixed 'v.c' target

the v compiler is smart and just outputs the c file if the argument to
-o ends in .c, which is cool, and not documented anywhere, very cool
master
Luna 2 years ago
parent
commit
93dd2b9d05
  1. 9
      Makefile

9
Makefile

@ -18,10 +18,11 @@ stage2: compiler/
@echo "Vore stage2 has been built."
v.c: stage1 compiler/
@echo "be warned this is experimental because i'm not mr.v"
@echo "the code enables some VDEBUG bullshit i dont wanna deal with"
./v -debug -o v compiler/
mv v.tmp.c v.c
./stage1 -o v.c compiler/
./stage1 -os windows -o v_win.c compiler/
clang-format -i v.c
clang-format -i v_win.c
@echo "NOTE: move v.c and v_win.c to your vc repository"
test: stage0
./v test v

Loading…
Cancel
Save