]>
Commit | Line | Data |
---|---|---|
1 | ifndef SDKROOT | |
2 | export SDKROOT = / | |
3 | endif | |
4 | ||
5 | Project = launchd | |
6 | Extra_Configure_Flags = --sbindir=/sbin --bindir=/bin --sysconfdir=/private/etc | |
7 | GnuAfterInstall = launchd_after_install | |
8 | include $(MAKEFILEPATH)/CoreOS/ReleaseControl/GNUSource.make | |
9 | Install_Flags = DESTDIR=$(DSTROOT) | |
10 | ||
11 | ifeq ($(shell tconf --test TARGET_OS_EMBEDDED),YES) | |
12 | Extra_Configure_Flags += --host=none-apple-darwin | |
13 | endif | |
14 | ||
15 | launchd_after_install:: | |
16 | ifeq ($(RC_ProjectName),launchd_libs) | |
17 | -find -d $(DSTROOT) -type f | grep -v /usr/local/lib/system | xargs rm | |
18 | -find -d $(DSTROOT) -type l | grep -v /usr/local/lib/system | xargs rm | |
19 | -find -d $(DSTROOT) -type d | grep -v /usr/local/lib/system | xargs rmdir | |
20 | else | |
21 | ifeq ($(shell tconf --test TARGET_OS_EMBEDDED),NO) | |
22 | mkdir -p $(DSTROOT)/Library/StartupItems | |
23 | chmod 755 $(DSTROOT)/Library/StartupItems | |
24 | mkdir -p $(DSTROOT)/System/Library/StartupItems | |
25 | chmod 755 $(DSTROOT)/System/Library/StartupItems | |
26 | endif | |
27 | rm -rf $(DSTROOT)/usr/local/lib/system | |
28 | cp $(OBJROOT)/src/launchd $(SYMROOT) | |
29 | cp $(OBJROOT)/src/launchctl $(SYMROOT) | |
30 | cp $(OBJROOT)/src/launchproxy $(SYMROOT) | |
31 | -dsymutil $(SYMROOT)/launchd | |
32 | -dsymutil $(SYMROOT)/launchctl | |
33 | -dsymutil $(SYMROOT)/launchproxy | |
34 | endif | |
35 | ||
36 | launchd_libs:: install |