Skip to content

Commit f0a32c8

Browse files
committed
Add Makefile
1 parent 64cd34f commit f0a32c8

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-forkfix /usr/lib/pkcs11/pkcs11-forkfix.so
13+
chmod +x /usr/lib/pkcs11/pkcs11-forkfix.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
@@ -13,8 +13,7 @@ Fork, clone or download this repository and use it as base for your own PKCS#11
1313
To build this module, you just run:
1414

1515
```shell
16-
./download_headers.sh
17-
go build --buildmode=c-shared -o bin/
16+
make build
1817
```
1918

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

0 commit comments

Comments
 (0)