pam_ussh/Makefile
GregoryDosh 0f7c4781de
Some checks failed
Build Module / Build Module (push) Failing after 27s
chore: fix header
2024-11-23 19:48:39 -06:00

24 lines
No EOL
520 B
Makefile

# git.auengun.net/GregoryDosh/pam-ussh
# Copyright (C) 2024 GregoryDosh
# avoid noisy directory messages
MAKEFLAGS += --no-print-directory
.PHONY: test
test:
go test -cover
.PHONY: download_deps
download_deps:
go get
.PHONY: clean
clean:
@-rm -rf ./release 2>/dev/null
.PHONY: build
build:
@make clean download_deps
@echo "Building pam_ussh.so"
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -buildmode=c-shared -o release/pam_ussh.so
sha256sum release/pam_ussh.so | cut -f1 -d " " > release/pam_ussh.sha256