Skip to content

Commit 87cee93

Browse files
committed
Add Makefile
1 parent 8267851 commit 87cee93

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
all:
2+
build
3+
install
4+
clean
5+
6+
build:
7+
if [ ! -d "./include" ];then chmod +x *.sh && ./download_headers.sh; fi
8+
mkdir -p bin
9+
go build --buildmode=c-shared -o bin/
10+
11+
install:
12+
cp bin/pkcs11-kmip /usr/lib/pkcs11/pkcs11-kmip.so
13+
chmod +x /usr/lib/pkcs11/pkcs11-kmip.so
14+
15+
clean:
16+
rm -Rf bin
17+
18+
.PHONY: build install clean

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ A PKCS#11 module which connects to a KMIP server.
99
To build this module, you just run:
1010

1111
```shell
12-
./download_headers.sh
13-
go build --buildmode=c-shared -o bin/
12+
make build
1413
```
1514

1615
Note: Because of Cgo, `gcc` is expected to be installed.

0 commit comments

Comments
 (0)