diff --git a/Makefile b/Makefile index dd0bbd9..035b75c 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,11 @@ endif .PHONY: all clean install uninstall builddir +ifeq ($(PLATFORM),posix) all: $(BIN) $(BUILDDIR)/$(MANPAGE) +else +all: $(BIN) +endif builddir: $(BUILDDIR) diff --git a/release.sh b/release.sh index 9c71ce9..3c67eb4 100755 --- a/release.sh +++ b/release.sh @@ -1,8 +1,10 @@ #!/bin/bash +set -e + pkg=mediaextract-`git describe --tags` -rm -r $pkg $pkg.zip +rm -r $pkg $pkg.zip 2>/dev/null || echo git clone . $pkg/source rm -rf $pkg/source/.git $pkg/source/.gitignore mv $pkg/source/README.md $pkg