소스 검색

Give a specific name for linux executable

DricomDragon 5 년 전
부모
커밋
4527c4ba45
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  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)