From 99c781bf07884424975ba2030eb50cf545adf99f Mon Sep 17 00:00:00 2001 From: chai2010 Date: Sun, 23 Jun 2019 10:34:41 +0800 Subject: [PATCH] compiler: add makefile for build v --- compiler/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 compiler/Makefile diff --git a/compiler/Makefile b/compiler/Makefile new file mode 100644 index 0000000000..d4080c3e39 --- /dev/null +++ b/compiler/Makefile @@ -0,0 +1,17 @@ +# Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +# Use of this source code is governed by an MIT license +# that can be found in the LICENSE file. + +all: v vc + +v: vc + ./vc -o v . + +vc: v.c + cc -w -o vc v.c + +v.c: + wget https://vlang.io/v.c + +clean: + -rm v vc v.c