-
Notifications
You must be signed in to change notification settings - Fork 4
/
quorum_easy_install.in
executable file
·44 lines (34 loc) · 1.53 KB
/
quorum_easy_install.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#! /bin/sh
# Next line is a comment for make but executed by /bin/sh \
exec make -f "$0" "$@"
PREFIX = $(shell pwd)
WGET = $(shell which wget 2>/dev/null)
CURL = $(shell which curl 2>/dev/null)
DOWNLOADER = $(if $(WGET), $(WGET) -O, $(if $(CURL), $(CURL) -o, $(error Error: No wget or curl found in PATH)))
JF_VERSION = @JELLYFISH_VERSION@
JF_URL = ftp://ftp.genome.umd.edu/pub/jellyfish/jellyfish-$(JF_VERSION).tar.gz
QUORUM_VERSION = @PACKAGE_VERSION@
QUORUM_URL = ftp://ftp.genome.umd.edu/pub/quorum/quorum-$(QUORUM_VERSION).tar.gz
all: info $(PREFIX)/bin/jellyfish $(PREFIX)/bin/quorum
@echo ************************************************************
@echo Installation successful
@echo For some help see: $(PREFIX)/bin/quorum --help
@echo ************************************************************
.PHONY: info
info:
@echo "Installing Jellyfish and Quorum in $(PREFIX)"
jellyfish-$(JF_VERSION).tar.gz:
$(DOWNLOADER) [email protected] $(JF_URL)
mv [email protected] $@
quorum-$(QUORUM_VERSION).tar.gz:
$(DOWNLOADER) [email protected] $(QUORUM_URL)
mv [email protected] $@
%/configure: %.tar.gz
tar zxf $<
touch $@
$(PREFIX)/bin/jellyfish: jellyfish-$(JF_VERSION)/configure
cd $(dir $<); ./configure --prefix=$(PREFIX)
$(MAKE) -C $(dir $<) install
$(PREFIX)/bin/quorum: quorum-$(QUORUM_VERSION)/configure $(PREFIX)/bin/jellyfish
cd $(dir $<); ./configure --prefix=$(PREFIX) JELLYFISH_LIBS="-L$(PREFIX)/lib -ljellyfish-2.0" JELLYFISH_CFLAGS="-I$(PREFIX)/include/jellyfish-$(JF_VERSION)" JF_LIB_PATH="$(PREFIX)/lib" JELLYFISH="$(PREFIX)/bin/jellyfish"
$(MAKE) -C $(dir $<) install