Explorar o código

Add a simple Makefile

Ben S %!s(int64=11) %!d(string=hai) anos
pai
achega
55280a5308
Modificáronse 2 ficheiros con 16 adicións e 0 borrados
  1. 1 0
      .gitignore
  2. 15 0
      Makefile

+ 1 - 0
.gitignore

@@ -1,2 +1,3 @@
 exa
+exa-test
 *~

+ 15 - 0
Makefile

@@ -0,0 +1,15 @@
+COMPILER = rustc
+
+all:
+	$(COMPILER) exa.rs
+
+test:
+	$(COMPILER) --test exa.rs -o exa-test
+	./exa-test
+
+clean:
+	rm -f exa
+	rm -f exa-test
+
+
+