Skip to content

Commit

Permalink
feat: add Makefile & run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kiedtl committed Apr 29, 2022
1 parent 2f905af commit 61a0ffc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
NAME = oathbreaker
VERSION = 1.0.0
PKGNAME = $(NAME)-$(shell uname -s)-$(shell uname -m)-$(VERSION)
CMD = @

.PHONY: dist
dist: zig-out/bin/rl
$(CMD)mkdir $(PKGNAME)
$(CMD)cp -r zig-out/bin/rl $(PKGNAME)
$(CMD)cp -r data $(PKGNAME)
$(CMD)cp -r doc $(PKGNAME)
$(CMD)cp -r prefabs $(PKGNAME)
$(CMD)cp -r run.sh $(PKGNAME)
$(CMD)tar -cf - $(PKGNAME) | xz -qcT0 > $(PKGNAME).tar.xz
$(CMD)rm -rf $(PKGNAME)
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

RL_MODE=normal ./rl 2>| log

0 comments on commit 61a0ffc

Please sign in to comment.