forked from GPGTools/Libmacgpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (19 loc) · 836 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PROJECT = Libmacgpg
TARGET = Libmacgpg
PRODUCT = Libmacgpg
PINENTRY_PATH = ./Dependencies/pinentry-mac
XPC_INSTALLATION_DIR = $(HOME)/Library/Application Support/GPGTools
VPATH = build/Release/Libmacgpg.framework/Versions/Current
all: $(PRODUCT)
update-pinentry:
@echo "Updating pinentry..."
@test -d "$(PINENTRY_PATH)/.git" || git submodule init
git submodule update
update: update-pinentry
$(PRODUCT): Source/* Resources/* Resources/*/* Libmacgpg.xcodeproj
@xcodebuild -project $(PROJECT).xcodeproj -target "$(PROJECT)" build $(XCCONFIG)
@xcodebuild -project $(PROJECT).xcodeproj -target "org.gpgtools.Libmacgpg.xpc" build $(XCCONFIG) "XPC_INSTALLATION_DIR='$(XPC_INSTALLATION_DIR)'"
clean:
rm -rf build/
# Cleanup pinentry-mac if necessary.
@test -d "$(PINENTRY_PATH)/build" && rm -rf "$(PINENTRY_PATH)/build" || exit 0