Browse Source

Give a specific name for linux executable

DricomDragon 4 years ago
parent
commit
4527c4ba45
1 changed files with 5 additions and 3 deletions
  1. 5 3
      makefile

+ 5 - 3
makefile

@@ -1,5 +1,7 @@
-hello.out: main.cpp
-	g++ main.cpp -o hello.out
+linux-artifact-name = hello-linux.out
+
+$(linux-artifact-name): main.cpp
+	g++ main.cpp -o $(linux-artifact-name)
 
 clean:
-	rm hello.out
+	rm $(linux-artifact-name)