Parcourir la source

Give a specific name for linux executable

DricomDragon il y a 5 ans
Parent
commit
4527c4ba45
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  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)