2 Extra_Configure_Flags = --sbindir=/sbin --bindir=/bin --sysconfdir=/private/etc
3 GnuAfterInstall = launchd_after_install
4 include $(MAKEFILEPATH)/CoreOS/ReleaseControl/GNUSource.make
5 Install_Flags = DESTDIR=$(DSTROOT)
7 launchd_after_install::
8 ifeq ($(RC_ProjectName),launchd_libs)
9 -find -d $(DSTROOT) -type f | grep -v /usr/local/lib/system | xargs rm
10 -find -d $(DSTROOT) -type l | grep -v /usr/local/lib/system | xargs rm
11 -find -d $(DSTROOT) -type d | grep -v /usr/local/lib/system | xargs rmdir
13 mkdir -p $(DSTROOT)/Library/StartupItems
14 chmod 755 $(DSTROOT)/Library/StartupItems
15 mkdir -p $(DSTROOT)/System/Library/StartupItems
16 chmod 755 $(DSTROOT)/System/Library/StartupItems
17 rm -rf $(DSTROOT)/usr/local/lib/system
18 cp $(OBJROOT)/src/launchd $(SYMROOT)
19 cp $(OBJROOT)/src/launchctl $(SYMROOT)
20 cp $(OBJROOT)/src/launchproxy $(SYMROOT)
21 dsymutil $(SYMROOT)/launchd
22 dsymutil $(SYMROOT)/launchctl
23 dsymutil $(SYMROOT)/launchproxy
26 launchd_libs:: install