diff options
-rw-r--r-- | rescue/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/rescue/Makefile b/rescue/Makefile index 449b6d865..e9591c927 100644 --- a/rescue/Makefile +++ b/rescue/Makefile @@ -22,8 +22,20 @@ dist-svn: tar cfa $(PRODUCT)-$(VERSION).tar.xz $(PRODUCT)-$(VERSION) rm -rf $(PRODUCT)-$(VERSION) +dist-git: + @cd ..; git archive --prefix=$(PRODUCT)-$(VERSION)/ HEAD rescue tools/install-xml-file-list Makefile.config | xz >$(PRODUCT)-$(VERSION).tar.xz; + tar: - @make dist-svn + rm -rf $(PRODUCT)*.tar* $(PRODUCT)-$(VERSION) + @if [ -e "../.svn" ]; then \ + $(MAKE) dist-svn; \ + elif [ -e "../.git" ]; then \ + $(MAKE) dist-git; \ + else \ + echo "Unknown SCM (not SVN nor GIT)";\ + exit 1; \ + fi; + $(info $(PRODUCT)-$(VERSION).tar.xz is ready) clean: rm -f $(RESCUE) kernel_read_part |