forked from ProcursusTeam/Procursus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
launchctl.mk
30 lines (22 loc) · 823 Bytes
/
launchctl.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ifneq ($(PROCURSUS),1)
$(error Use the main Makefile)
endif
STRAPPROJECTS += launchctl
LAUNCHCTL_VERSION := 23-2
DEB_LAUNCHCTL_V ?= $(LAUNCHCTL_VERSION)
launchctl:
@echo "Launchctl package won't build because you need to put the launchctl binary in $(BUILD_INFO)."
launchctl-package: launchctl-stage
# launchctl.mk Package Structure
rm -rf $(BUILD_DIST)/launchctl
mkdir -p $(BUILD_DIST)/launchctl/{usr/bin,bin}
# launchctl.mk Prep launchctl
cp -a $(BUILD_INFO)/launchctl $(BUILD_DIST)/launchctl/usr/bin
ln -s /usr/bin/launchctl $(BUILD_DIST)/launchctl/bin/launchctl
# launchctl.mk Sign launchctl
$(call SIGN,launchctl,launchctl.xml)
# launchctl.mk Make .debs
$(call PACK,launchctl,DEB_LAUNCHCTL_V)
# launchctl.mk Build cleanup
rm -rf $(BUILD_DIST)/launchctl
.PHONY: launchctl launchctl-package