mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: add a separate download_vc target to Makefile for FreeBSD
This commit is contained in:
parent
93a1cd5aab
commit
7f23ae595b
15
Makefile
15
Makefile
@ -3,19 +3,20 @@ VFLAGS ?=
|
|||||||
CFLAGS ?=
|
CFLAGS ?=
|
||||||
LDFLAGS ?=
|
LDFLAGS ?=
|
||||||
|
|
||||||
.PHONY: all check
|
.PHONY: all check download_vc v
|
||||||
|
|
||||||
all: vc
|
all: download_vc v
|
||||||
git -C vc/ pull;
|
|
||||||
|
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)
|
$(CC) $(CFLAGS) -std=gnu11 -w -o v1 vc/v.c -lm -lexecinfo -lpthread $(LDFLAGS)
|
||||||
./v1 -no-parallel -o v2 $(VFLAGS) cmd/v
|
./v1 -no-parallel -o v2 $(VFLAGS) cmd/v
|
||||||
./v2 -o v $(VFLAGS) cmd/v
|
./v2 -o v $(VFLAGS) cmd/v
|
||||||
rm -rf v1 v2 vc/
|
rm -rf v1 v2
|
||||||
@echo "V has been successfully built"
|
@echo "V has been successfully built"
|
||||||
./v run ./cmd/tools/detect_tcc.v
|
./v run ./cmd/tools/detect_tcc.v
|
||||||
|
|
||||||
vc/v.c:
|
|
||||||
git clone --filter=blob:none https://github.com/vlang/vc
|
|
||||||
|
|
||||||
check:
|
check:
|
||||||
./v test-all
|
./v test-all
|
||||||
|
Loading…
Reference in New Issue
Block a user