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:
parent
a81875b24b
commit
fdb1433c24
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,6 +3,8 @@
|
||||
/v
|
||||
/vprod
|
||||
/v.c
|
||||
/v.*.c
|
||||
/v.c.out
|
||||
/v.exe
|
||||
*.exe
|
||||
*.o
|
||||
|
6
Makefile
6
Makefile
@ -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
1
examples/vweb/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
test_app
|
Loading…
Reference in New Issue
Block a user