ci: add a separate download_vc target to Makefile for FreeBSD

This commit is contained in:
Delyan Angelov 2022-12-14 14:05:10 +02:00
parent 93a1cd5aab
commit 7f23ae595b
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 8 additions and 7 deletions

View File

@ -3,19 +3,20 @@ VFLAGS ?=
CFLAGS ?=
LDFLAGS ?=
.PHONY: all check
.PHONY: all check download_vc v
all: vc
git -C vc/ pull;
all: download_vc v
download_vc:
if [ -f vc/v.c ] ; then git -C vc/ pull; else git clone --filter=blob:none https://github.com/vlang/vc vc/; fi
v:
$(CC) $(CFLAGS) -std=gnu11 -w -o v1 vc/v.c -lm -lexecinfo -lpthread $(LDFLAGS)
./v1 -no-parallel -o v2 $(VFLAGS) cmd/v
./v2 -o v $(VFLAGS) cmd/v
rm -rf v1 v2 vc/
rm -rf v1 v2
@echo "V has been successfully built"
./v run ./cmd/tools/detect_tcc.v
vc/v.c:
git clone --filter=blob:none https://github.com/vlang/vc
check:
./v test-all