]>
Commit | Line | Data |
---|---|---|
f36da725 A |
1 | ifndef SDKROOT |
2 | export SDKROOT = / | |
3 | endif | |
4 | ||
e91b9f68 A |
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 | ||
f36da725 A |
11 | ifeq ($(shell tconf --test TARGET_OS_EMBEDDED),YES) |
12 | Extra_Configure_Flags += --host=none-apple-darwin | |
13 | endif | |
14 | ||
e91b9f68 A |
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 | |
f36da725 | 21 | ifeq ($(shell tconf --test TARGET_OS_EMBEDDED),NO) |
e91b9f68 A |
22 | mkdir -p $(DSTROOT)/Library/StartupItems |
23 | chmod 755 $(DSTROOT)/Library/StartupItems | |
5b0a4722 A |
24 | mkdir -p $(DSTROOT)/System/Library/StartupItems |
25 | chmod 755 $(DSTROOT)/System/Library/StartupItems | |
f36da725 | 26 | endif |
e91b9f68 | 27 | rm -rf $(DSTROOT)/usr/local/lib/system |
5b0a4722 A |
28 | cp $(OBJROOT)/src/launchd $(SYMROOT) |
29 | cp $(OBJROOT)/src/launchctl $(SYMROOT) | |
30 | cp $(OBJROOT)/src/launchproxy $(SYMROOT) | |
f36da725 A |
31 | -dsymutil $(SYMROOT)/launchd |
32 | -dsymutil $(SYMROOT)/launchctl | |
33 | -dsymutil $(SYMROOT)/launchproxy | |
e91b9f68 A |
34 | endif |
35 | ||
36 | launchd_libs:: install |