Skip to content

Commit

Permalink
Adds pack target to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanprior committed May 22, 2020
1 parent eb57555 commit ece358d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/meet
/meet-*.tgz
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
DESTDIR := /usr/local
VERSION := $(shell grep version shard.yml | cut -d' ' -f2)

meet: meet.cr shard.yml .git/refs/heads/master
crystal build --release --static --no-debug -o $@ $<

.PHONY: install
install: meet
install meet $(DESTDIR)/bin/meet

.PHONY: pack
pack: meet-$(VERSION).tgz

meet-$(VERSION).tgz: meet COPYING
tar czf $@ $^

0 comments on commit ece358d

Please sign in to comment.