From badb74448b536181dcc80e8a0aca00a83ae3efd4 Mon Sep 17 00:00:00 2001
From: Matthieu Boileau <matthieu.boileau@math.unistra.fr>
Date: Tue, 21 Nov 2017 02:04:39 +0100
Subject: [PATCH] Update makefile

---
 makefile | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/makefile b/makefile
index d55875e..e7a80f9 100644
--- a/makefile
+++ b/makefile
@@ -1,13 +1,14 @@
-.PHONY: clean pythran
+all: helloworld pythran
 
-all: C pythran
+helloworld:
+	gcc helloworld.c -o helloworld.e
 
-C:
-	  gcc helloworld.c -o helloworld.e
+test: helloworld
+	python test_helloworld.py
 
 pythran:
-	  pythran rosenbrock.py -o rosenbrock_pythran.so
+	pythran rosenbrock.py -o rosenbrock_pythran.so
 
 clean:
-	  rm -rf *.o *.e *.so *.pyf *.pyc __pycache__
+	rm -rf *.o *.e *.so *.pyf *.pyc __pycache__
 
-- 
GitLab