Skip to content

Commit

Permalink
build: use gzip for vendored deps archive and use proper file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
msekletar committed Aug 10, 2018
1 parent 1074e25 commit bbb6b06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ MINOR:=1
PATCH:=0

VERSION:=$(MAJOR).$(MINOR).$(PATCH)
ARCHIVE:=$(NAME)-$(VERSION).tar.xz
VENDOR:=$(NAME)-$(VERSION)-vendor.tar.xz
ARCHIVE:=$(NAME)-$(VERSION).tar.gz
VENDOR:=$(NAME)-$(VERSION)-vendor.tar.gz

FEDORA_VERSION:=rawhide

Expand Down Expand Up @@ -35,12 +35,12 @@ uninstall:
rm -rf $(DESTDIR)/usr/lib/dracut/modules.d/71prefixdevname

dist:
@git archive HEAD --prefix $(NAME)-$(VERSION)/ | zcat > $(ARCHIVE)
@git archive HEAD --prefix $(NAME)-$(VERSION)/ | gzip > $(ARCHIVE)

vendor:
@rm -rf vendor
@cargo vendor
@tar -cJf $(VENDOR) vendor
@tar -czf $(VENDOR) vendor

srpm: dist
@cp $(ARCHIVE) $(VENDOR) ~/rpmbuild/SOURCES
Expand Down

0 comments on commit bbb6b06

Please sign in to comment.