-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
51 lines (36 loc) · 1.22 KB
/
Makefile
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
SHELL := /bin/bash -O extglob
VERSION=$(shell git describe --tags --always --dirty)
export ROOT_DIR=$(shell pwd)
# Targets for development builds.
#
all: reference test-data
clean: reference-clean manual-clean
# Targets for python builds
# Find python libs, includes, and default flags.
PYTHON_ROOT:=$(shell python-config --exec-prefix)
PYTHON_LIB_DIR:=$(dir $(lastword $(wildcard $(PYTHON_ROOT)/lib*/libpython*.so*)))
PYTHON_SITE_PKG:=$(lastword $(wildcard $(PYTHON_LIB_DIR)/python*/site-packages))
PYTHON_CFLAGS:=$(shell python-config --cflags)
PYTHON_LDFLAGS:=$(shell python-config --ldflags)
test-data:
make -C test/shared/smartseq3-test
reference:
make -C test/cellranger_reference/cellranger-tiny-ref
reference-clean:
make -C test/cellranger_reference/cellranger-tiny-ref clean
@echo "removing pre-generated cellranger reference files"
rm -Rf test/cellranger_reference/cellranger-tiny-ref/3.0.0
rm -Rf test/cellranger_reference/cellranger-tiny-ref/1.2.0
# Copy to manuals (requires root priviledges
manual:
@./man/INSTALL
manual-clean:
@./man/REMOVE
install:
@./inst/INSTALL prefix=$(prefix)
remove:
@./inst/REMOVE
uninstall: remove clean
reinstall: uninstall install
upgrade:
@./inst/UPGRADE prefix=$(prefix)