Pārlūkot izejas kodu

Add a simple Makefile

Ben S 11 gadi atpakaļ
vecāks
revīzija
55280a5308
2 mainītis faili ar 16 papildinājumiem un 0 dzēšanām
  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
+
+
+