Makefile: rebuild compiler when sources change

pull/1552/head
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 /v
/vprod /vprod
/v.c /v.c
/v.*.c
/v.c.out
/v.exe /v.exe
*.exe *.exe
*.o *.o

View File

@ -6,10 +6,10 @@ VC ?= 0.1.17
all: v all: v
$(info V has been successfully built) $(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.c.out -o v compiler
v-release: v.c v-release:
./v -cflags '${CFLAGS}' -o v compiler ./v -cflags '${CFLAGS}' -o v compiler
strip v strip v
@ -17,7 +17,7 @@ v.c.out: v.${VC}.c
${CC} -std=gnu11 -w -o v.c.out v.${VC}.c -lm ${CC} -std=gnu11 -w -o v.c.out v.${VC}.c -lm
v.${VC}.c: 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 test: v
./v -prod -o vprod compiler # Test prod build ./v -prod -o vprod compiler # Test prod build

1
examples/vweb/.gitignore vendored 100644
View File

@ -0,0 +1 @@
test_app