diff --git a/.gitignore b/.gitignore index d8a5a7d..ad40b15 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ _debug/ _release/ -/inotify-info-v*.tar.gz +/inotify-info-*.tar.gz diff --git a/Makefile b/Makefile index 6bf0e0a..abcb2f5 100644 --- a/Makefile +++ b/Makefile @@ -72,7 +72,6 @@ else endif PROJ = $(ODIR)/$(NAME) -$(info Building $(ODIR)/$(NAME)...) ifeq ($(VERBOSE), 1) VERBOSE_PREFIX= @@ -112,6 +111,6 @@ clean: define RELEASE_RULES inotify-info-$(TAG).tar.gz: - git archive --prefix=inotify-info-$(TAG)/ $(TAG) | gzip -n > $$@ + git archive --prefix=inotify-info-$(TAG)/ v$(TAG) | gzip -n > $$@ endef -$(foreach TAG,$(shell git tag 2>/dev/null),$(eval $(RELEASE_RULES))) +$(foreach TAG,$(shell git tag | sed -n '/^v/ s/^v//p' 2>/dev/null),$(eval $(RELEASE_RULES)))