This repository was archived by the owner on May 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
82 lines (68 loc) · 1.89 KB
/
Makefile
File metadata and controls
82 lines (68 loc) · 1.89 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
VERSION ?= 0.1.0
ARCH ?= amd64
PYSAM_VERSION ?= 0.7.8
NETWORKX_VERSION ?= 1.9
GIT_DESCRIBE = $(shell git describe --always)
package: pysam networkx ighutil vdjalign
upload: package
(cd debs && \
bundle exec deb-s3 upload --sign 3AA09EC1 -a amd64 *.deb --bucket cmccoy-debian-repo)
pysam: debs/python-pysam_$(PYSAM_VERSION)_$(ARCH).deb
networkx: debs/python-networkx_$(NETWORKX_VERSION)_all.deb
ighutil: debs/ighutil_$(VERSION)_$(ARCH).deb
vdjalign: debs/vdjalign_$(VERSION)_$(ARCH).deb
debs/ighutil_$(VERSION)_$(ARCH).deb:
mkdir -p debs
+make -C clj all
mkdir -p tmp/usr/local/bin
cp clj/bin/ighutil tmp/usr/local/bin
@echo "Packaging $@"
(cd debs && bundle exec fpm \
-C ../tmp \
--version $(VERSION) \
-d 'java7-runtime-headless' \
-n 'ighutil' \
--license GPLv3 \
--maintainer "Connor McCoy <cmccoy@fhcrc.org>" \
--description "Tools for working with output of vdjalign. sha: $(GIT_DESCRIBE)" \
--url "http://github.com/cmccoy/ighutil" \
--deb-suggests vdjalign \
--category universe/math \
-s dir \
-t deb \
.)
rm -rf tmp
debs/python-networkx_$(NETWORKX_VERSION)_all.deb:
mkdir -p debs
@echo "Packaging $@"
(cd debs && bundle exec fpm \
-s python \
-t deb \
networkx)
debs/python-pysam_$(PYSAM_VERSION)_$(ARCH).deb:
mkdir -p debs
@echo "Packaging $@"
(cd debs && bundle exec fpm \
--no-python-dependencies \
-d 'cython (>=0.19)' \
-s python \
-t deb \
pysam)
debs/vdjalign_$(VERSION)_$(ARCH).deb:
mkdir -p debs
@echo "Packaging $@"
(cd debs && bundle exec fpm \
-n vdjalign \
-s python \
-t deb \
-d 'samtools' \
--license GPLv3 \
--maintainer "Connor McCoy <cmccoy@fhcrc.org>" \
--description "Align IGHV gene sequences. sha: $(GIT_DESCRIBE)" \
--url "http://github.com/cmccoy/ighutil" \
--category universe/math \
--deb-suggests ighutil \
../python/setup.py)
docker-test: Dockerfile package
docker build .
.PHONY: package docker-test