darwin-update-plist-building-20010912
[openafs.git] / src / libafs / MakefileProto.DARWIN.in
index 16b4e0d..2140b84 100644 (file)
@@ -20,6 +20,7 @@ afssrvsbindir=@afssrvsbindir@
 afssrvlibexecdir=@afssrvlibexecdir@
 afskerneldir=@afskerneldir@
 SYS_NAME=@AFS_SYSNAME@
+DARWIN_INFOFILE=../@DARWIN_INFOFILE@
 
 include config/Makefile.${SYS_NAME}
 
@@ -87,29 +88,28 @@ setup:
 LIBAFS = libafs.o
 LIBAFSNONFS = libafs.nonfs.o
 
-INST_LIBAFS = ${DESTDIR}${afskerneldir}/afs-nfs
-INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/afs
-DEST_LIBAFS = ${DEST}/root.client/usr/vice/etc/afs.kext/Contents/MacOS/afs-nfs
-DEST_LIBAFSNONFS = ${DEST}/root.client/usr/vice/etc/afs.kext/Contents/MacOS/afs
+INST_LIBAFS = ${DESTDIR}${afskerneldir}/afs-nfs.kext
+INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/afs.kext
+DEST_LIBAFS = ${DEST}/root.client/usr/vice/etc/afs-nfs.kext
+DEST_LIBAFSNONFS = ${DEST}/root.client/usr/vice/etc/afs.kext
 
 
 libafs: $(LIBAFSNONFS) ;
-install_libafs: $(INST_LIBAFSNONFS) ;
-dest_libafs: $(DEST_LIBAFSNONFS) ;
+install_libafs: $(LIBAFSNONFS) ;
+       -mkdir -p ${INST_LIBAFSNONFS}
+       -mkdir -p ${INST_LIBAFSNONFS}/Contents
+       $(INSTALL) -f ${DARWIN_INFOFILE} ${INST_LIBAFSNONFS}/Contents/Info.plist
+       -mkdir -p ${INST_LIBAFSNONFS}/Contents/MacOS
+       $(INSTALL) -f ${LIBAFSNONFS} ${INST_LIBAFSNONFS}/Contents/MacOS/afs
+
+dest_libafs: $(LIBAFSNONFS) ;
+       -mkdir -p ${DEST_LIBAFSNONFS}
+       -mkdir -p ${DEST_LIBAFSNONFS}/Contents
+       $(INSTALL) -f ${DARWIN_INFOFILE} ${DEST_LIBAFSNONFS}/Contents/Info.plist
+       -mkdir -p ${DEST_LIBAFSNONFS}/Contents/MacOS
+       $(INSTALL) -f ${LIBAFSNONFS} ${DEST_LIBAFSNONFS}/Contents/MacOS/afs
 
 
-$(INST_LIBAFS): $(LIBAFS)
-       $(INSTALL) -f $? $@
-
-$(INST_LIBAFSNONFS): $(LIBAFSNONFS)
-       $(INSTALL) -f $? $@
-
-$(DEST_LIBAFS): $(LIBAFS)
-       $(INSTALL) -f $? $@
-
-$(DEST_LIBAFSNONFS): $(LIBAFSNONFS)
-       $(INSTALL) -f $? $@
-
 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
        $(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}