Skip to content

Commit

Permalink
Add dist target.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hujer committed Jan 25, 2015
1 parent eb6af65 commit 6c4f477
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,25 @@ install:
uninstall:
$(RM) -r $(INCDIR)/makehelp/ $(BINDIR)/makehelp

.PHONY: dist
## Creates the distribution archives.
dist: dist/makehelp.tar.gz dist/makehelp.tar.bz2 dist/makehelp.zip

dist/makehelp.tar.gz: dist/makehelp.tar
dist/makehelp.tar.bz2: dist/makehelp.tar

%.gz: %
<$< gzip -9 >$@

%.bz2: %
<$< bzip2 -9 >$@

dist/makehelp.tar dist/makehelp.zip:
mkdir -p dist
git archive -o $@ --prefix makehelp/ HEAD .

.PHONY: clean
clean:
$(RM) -r dist

include include/makehelp/Help.mak

0 comments on commit 6c4f477

Please sign in to comment.