Skip to content

Commit bf3299f

Browse files
committed
Build instructions
1 parent c20e53e commit bf3299f

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

Diff for: .gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
*~
2-
Makefile
32
.Rhistory
43
.*swp
54
.nfs*
@@ -123,3 +122,7 @@ bin/
123122
obj/
124123
include/
125124
build/
125+
*.aux
126+
*.log
127+
*.synctex.gz
128+

Diff for: Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
# Convenience Makefile invokes cmake. See also the README
2+
13
VCF_LIB_LOCAL:=$(shell pwd)
24
BUILD_DIR:=$(VCF_LIB_LOCAL)/build
35
BIN_DIR:=$(VCF_LIB_LOCAL)/bin
46
LIB_DIR:=$(VCF_LIB_LOCAL)/lib
57
INC_DIR:=$(VCF_LIB_LOCAL)/include
68
CMAKE_FLAGS?=
79

8-
all:
10+
all:
911
if [ ! -d $(BUILD_DIR) ]; then mkdir -p $(BUILD_DIR); fi
1012
cd $(BUILD_DIR); \
1113
cmake $(CMAKE_FLAGS) -DCMAKE_INSTALL_PREFIX=$(VCF_LIB_LOCAL) $(VCF_LIB_LOCAL); \

Diff for: README.md

+18-8
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,31 @@ conda install -c conda-forge -c bioconda -c defaults vcflib
3535
brew install brewsci/bio/vcflib
3636
```
3737

38-
### source
39-
```
38+
### build from source
39+
40+
VCFLIB uses the cmake build system, after a recursive checkout
41+
of the sources make the files in the ./build directory with:
42+
43+
```sh
4044
git clone --recursive https://github.com/vcflib/vcflib.git
4145
cd vcflib
42-
make -j
46+
mkdir -p build && cd build
47+
cmake ..
48+
make
4349
```
44-
Executables are built into the `./bin` directory in the repository.
45-
A number of shell, perl, python3, and R scripts already reside there.
46-
This makes installation easy, as users can add vcflib/bin
47-
to their path, or copy the contained executables to a directory already in their path.
4850

51+
and to run the tests
52+
53+
```sh
54+
cd test
55+
make
56+
```
57+
58+
Executables are built into the `./build` directory in the repository.
4959

5060
## using the C++ library
5161

52-
```
62+
```make
5363
# Put this in your Makefile
5464

5565
VCFLIB_DIR = /path/to/vcflib

0 commit comments

Comments
 (0)