Parcourir la source

Remove artifact suffix

In order to get makefile more readable
DricomDragon il y a 4 ans
Parent
commit
f99da98c91
1 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. 7 7
      makefile

+ 7 - 7
makefile

@@ -1,16 +1,16 @@
-linux-artifact-name = hello-linux.out
-win-artifact-name = hello-windows.exe
+linux-artifact = hello-linux.out
+win-artifact = hello-windows.exe
 
 linux-compiler = g++
 
 # Embed c and c++ libraries (see https://stackoverflow.com/a/6405064)
 win-compiler = i686-w64-mingw32-g++-win32 -static-libstdc++ -static-libgcc
 
-$(linux-artifact-name): main.cpp
-	$(linux-compiler) main.cpp -o $(linux-artifact-name)
+$(linux-artifact): main.cpp
+	$(linux-compiler) main.cpp -o $(linux-artifact)
 
-$(win-artifact-name): main.cpp
-	$(win-compiler) main.cpp -o $(win-artifact-name)
+$(win-artifact): main.cpp
+	$(win-compiler) main.cpp -o $(win-artifact)
 
 clean:
-	rm -f $(linux-artifact-name) $(win-artifact-name)
+	rm -f $(linux-artifact) $(win-artifact)