From 621ca82ea6855091277faaaf4ce0c87e40415a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Barbero?= Date: Wed, 18 Jan 2023 10:18:27 +0100 Subject: [PATCH] Merged https://github.com/biscuitehh/pam-watchid/pull/21 --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 401b8cf..21a06fb 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,11 @@ VERSION = 2 LIBRARY_NAME = pam_watchid.so DESTINATION = /usr/local/lib/pam -TARGET = x86_64-apple-macosx10.15 +TARGET = $(shell clang -dumpmachine) all: - swiftc watchid-pam-extension.swift -o $(LIBRARY_NAME) -target $(TARGET) -emit-library + swiftc watchid-pam-extension.swift -O -Ounchecked -gnone -o $(LIBRARY_NAME) -target $(TARGET) -emit-library install: all mkdir -p $(DESTINATION) - cp $(LIBRARY_NAME) $(DESTINATION)/$(LIBRARY_NAME).$(VERSION) - chmod 444 $(DESTINATION)/$(LIBRARY_NAME).$(VERSION) - chown root:wheel $(DESTINATION)/$(LIBRARY_NAME).$(VERSION) + install -o root -g wheel -m 444 $(LIBRARY_NAME) $(DESTINATION)/$(LIBRARY_NAME).$(VERSION)