From f81bf1e53d903b32f203aa73f5a31def1bf1f5e9 Mon Sep 17 00:00:00 2001 From: Arjun Prasad Date: Wed, 28 Nov 2018 12:08:35 -0500 Subject: [PATCH] Added github_binaries target to makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Makefile b/Makefile index 9232418..c3aae8c 100644 --- a/Makefile +++ b/Makefile @@ -103,3 +103,21 @@ dist: tar cvfz $(DISTDIR).tar.gz $(DISTDIR)/* rm -r $(DISTDIR)/* rmdir $(DISTDIR) + +# amrfinder binaries for github binary release +GITHUB_FILE=amrfinder_binaries_v$(VERSION_STRING) +GITHUB_FILES = test_* amrfinder.pl fasta_check gff_check amr_report +github_binaries: + @if [ ! -e version.txt ]; \ + then \ + echo >&2 "version.txt required to make a distribution file"; \ + false; \ + fi + mkdir $(GITHUB_FILE) + echo $(VERSION_STRING) > $(GITHUB_FILE)/version.txt + cp $(GITHUB_FILES) $(GITHUB_FILE) + if [ -e $(GITHUB_FILE).tar.gz ]; then rm $(GITHUB_FILE).tar.gz; fi + tar cvfz $(GITHUB_FILE).tar.gz $(GITHUB_FILE)/* + rm -r $(GITHUB_FILE)/* + rmdir $(GITHUB_FILE) +