From fdb1433c24cedb9eabf123c0112bce59ed7f974d Mon Sep 17 00:00:00 2001 From: Rendims <52757857+Rendims@users.noreply.github.com> Date: Sat, 10 Aug 2019 00:11:17 +0200 Subject: [PATCH] Makefile: rebuild compiler when sources change --- .gitignore | 2 ++ Makefile | 6 +++--- examples/vweb/.gitignore | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 examples/vweb/.gitignore diff --git a/.gitignore b/.gitignore index fb3ac3fec3..e6cce5952f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ /v /vprod /v.c +/v.*.c +/v.c.out /v.exe *.exe *.o diff --git a/Makefile b/Makefile index 4ba4044d59..2ba867e394 100644 --- a/Makefile +++ b/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 diff --git a/examples/vweb/.gitignore b/examples/vweb/.gitignore new file mode 100644 index 0000000000..1c9390a1d3 --- /dev/null +++ b/examples/vweb/.gitignore @@ -0,0 +1 @@ +test_app