浏览代码

Add make target to distribute executable

That is not working when SDL is not installed.
DricomDragon 4 年之前
父节点
当前提交
7754ad2089
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 1 0
      .gitignore
  2. 4 0
      makefile

+ 1 - 0
.gitignore

@@ -38,3 +38,4 @@
 # End of https://www.toptal.com/developers/gitignore/api/c++
 # End of https://www.toptal.com/developers/gitignore/api/c++
 
 
 bin/
 bin/
+dist/

+ 4 - 0
makefile

@@ -24,3 +24,7 @@ distclean: clean
 
 
 exec: $(EXEC)
 exec: $(EXEC)
 	./bin/$(EXEC)
 	./bin/$(EXEC)
+
+dist: $(EXEC)
+	@mkdir -p dist
+	zip dist/RainbowDodge.zip ./bin/$(EXEC)