]> git.saurik.com Git - apple/launchd.git/blame_incremental - Makefile
launchd-258.18.tar.gz
[apple/launchd.git] / Makefile
... / ...
CommitLineData
1ifndef SDKROOT
2export SDKROOT = /
3endif
4
5Project = launchd
6Extra_Configure_Flags = --sbindir=/sbin --bindir=/bin --sysconfdir=/private/etc
7GnuAfterInstall = launchd_after_install
8include $(MAKEFILEPATH)/CoreOS/ReleaseControl/GNUSource.make
9Install_Flags = DESTDIR=$(DSTROOT)
10
11ifeq ($(shell tconf --test TARGET_OS_EMBEDDED),YES)
12Extra_Configure_Flags += --host=none-apple-darwin
13endif
14
15launchd_after_install::
16ifeq ($(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
20else
21ifeq ($(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
26endif
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
34endif
35
36launchd_libs:: install