]> git.saurik.com Git - apple/launchd.git/blame - Makefile
launchd-258.18.tar.gz
[apple/launchd.git] / Makefile
CommitLineData
f36da725
A
1ifndef SDKROOT
2export SDKROOT = /
3endif
4
e91b9f68
A
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
f36da725
A
11ifeq ($(shell tconf --test TARGET_OS_EMBEDDED),YES)
12Extra_Configure_Flags += --host=none-apple-darwin
13endif
14
e91b9f68
A
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
f36da725 21ifeq ($(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 26endif
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
34endif
35
36launchd_libs:: install