mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
move Makefile to root
This commit is contained in:
20
Makefile
Normal file
20
Makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
all: clean v
|
||||
|
||||
v: v.c
|
||||
cc -std=gnu11 -w -o v v.c
|
||||
./v -o v compiler
|
||||
rm v.c
|
||||
echo "V has been successfully built"
|
||||
|
||||
v.c:
|
||||
curl -Os https://raw.githubusercontent.com/vlang/vc/master/v.c
|
||||
|
||||
test: v
|
||||
./v -prod -o vprod . # Test prod build
|
||||
echo "Running V tests..."
|
||||
find . -name '*_test.v' -print0 | xargs -0 -n1 ./v
|
||||
echo "Building V examples..."
|
||||
find examples -name '*.v' -print0 | xargs -0 -n1 ./v
|
||||
|
||||
clean:
|
||||
-rm -f v.c v vprod
|
Reference in New Issue
Block a user