1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

Makefile: rebuild compiler when sources change

This commit is contained in:
Rendims 2019-08-10 00:11:17 +02:00 committed by Alexander Medvednikov
parent a81875b24b
commit fdb1433c24
3 changed files with 6 additions and 3 deletions

2
.gitignore vendored
View File

@ -3,6 +3,8 @@
/v
/vprod
/v.c
/v.*.c
/v.c.out
/v.exe
*.exe
*.o

View File

@ -6,10 +6,10 @@ VC ?= 0.1.17
all: v
$(info V has been successfully built)
v: v.c.out
v: v.c.out compiler/*.v vlib/**/*.v
./v.c.out -o v compiler
v-release: v.c
v-release:
./v -cflags '${CFLAGS}' -o v compiler
strip v
@ -17,7 +17,7 @@ v.c.out: v.${VC}.c
${CC} -std=gnu11 -w -o v.c.out v.${VC}.c -lm
v.${VC}.c:
curl -o v.${VC}.c -Ls https://github.com/vlang/vc/raw/${VC}/v.c
curl -o v.${VC}.c -LsSf https://github.com/vlang/vc/raw/${VC}/v.c
test: v
./v -prod -o vprod compiler # Test prod build

1
examples/vweb/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
test_app