Skip to content

Commit

Permalink
Makefile: specify dist contents explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
immerrr committed Mar 24, 2011
1 parent 5953970 commit ddcd8b8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@
VERSION="$(shell sed -nre '/^;; Version:/ { s/^;; Version:[ \t]+//; p }' lua-mode.el)"
DISTFILE = lua-mode-$(VERSION).zip

DIST_CONTENTS = \
lua-mode.el \
README \
README.md \
TODO \
Makefile

default:
@echo version is $(VERSION)

dist:
rm -f $(DISTFILE) && \
zip $(DISTFILE) -r . -x ".git/*" "*.gitignore" "*.zip"
zip $(DISTFILE) -r $(DIST_CONTENTS)

release:
git diff --exit-code && \
Expand Down

0 comments on commit ddcd8b8

Please sign in to comment.