]> git.saurik.com Git - apple/shell_cmds.git/blob - locate/locate/Makefile
96c5764478272ff6ac2c04880a747002b92e4e84
[apple/shell_cmds.git] / locate / locate / Makefile
1 Project = locate
2 Install_Dir = /usr/bin
3
4 HFILES = locate.h pathnames.h
5 CFILES = util.c locate.c
6 MANPAGES = locate.1 locate.updatedb.8
7 #OTHERSRCS = Makefile Makefile.preamble Makefile.postamble \
8 fastfind.c \
9 locate.1 locate.updatedb.8 locate.rc \
10 concatdb.sh mklocatedb.sh updatedb.sh
11 LAUNCHD_PLISTS = com.apple.locate.plist
12
13 Extra_CC_Flags = -Wall -mdynamic-no-pic
14 Extra_LD_Flags = -dead_strip
15
16 include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
17
18 after_install:
19 $(INSTALL_DIRECTORY) $(DSTROOT)/usr/libexec
20 $(INSTALL_SCRIPT) concatdb.sh $(DSTROOT)/usr/libexec/locate.concatdb
21 $(INSTALL_SCRIPT) mklocatedb.sh $(DSTROOT)/usr/libexec/locate.mklocatedb
22 $(INSTALL_SCRIPT) updatedb.sh $(DSTROOT)/usr/libexec/locate.updatedb
23 $(LN) $(DSTROOT)/usr/share/man/man8/locate.updatedb.8 $(DSTROOT)/usr/share/man/man8/locate.concatdb.8
24 $(LN) $(DSTROOT)/usr/share/man/man8/locate.updatedb.8 $(DSTROOT)/usr/share/man/man8/locate.mklocatedb.8
25 $(INSTALL_DIRECTORY) $(DSTROOT)/private/etc
26 $(INSTALL_FILE) locate.rc $(DSTROOT)/private/etc