Finish afscell implementation work
[openafs.git] / src / platform / DARWIN / Makefile.in
index 36d9be4..c42aa41 100644 (file)
@@ -11,9 +11,17 @@ INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
-include ../../config/Makefile.version
 
-all: afssettings
+.PHONY: all afscell
+
+all: OpenAFS.prefPane afssettings afscell
+
+OpenAFS.prefPane:
+       xcodebuild -project AFSPreference/OpenAFS.xcodeproj
+       mv AFSPreference/build/Release/OpenAFS.prefPane OpenAFS.prefPane
+
+afscell:
+       cd afscell && xcodebuild
 
 afssettings: afssettings.m 
        ${CC} ${CFLAGS} -o afssettings afssettings.m -framework Foundation
@@ -22,13 +30,26 @@ install: \
        ${DESTDIR}${sbindir}/afssettings
 
 dest: \
-       ${DEST}/etc/afssettings
+       ${DEST}/etc/afssettings \
+       ${DEST}/installer/afscell.bundle \
+       ${DEST}/installer/InstallerSections.plist
 
 ${DESTDIR}${sbindir}/afssettings: afssettings
-       ${INSTALL} -s $? $@
+       ${INSTALL} $? $@
 
 ${DEST}/etc/afssettings: afssettings
-       ${INSTALL} -s $? $@
+       ${INSTALL} $? $@
+
+${DEST}/installer/afscell.bundle: afscell/build/Release/afscell.bundle
+       mkdir -p ${DEST}/installer
+       rm -rf ${DEST}/installer/afscell.bundle
+       cp -R $? $@
+
+${DEST}/installer/InstallerSections.plist: afscell/InstallerSections.plist
+       ${INSTALL} $? $@
 
 clean:
-       $(RM) -f *.o core afssettings AFS_component_version_number.c 
+       $(RM) -rf OpenAFS.prefPane
+       $(RM) -rf AFSPreference/build
+       $(RM) -f *.o core afssettings AFS_component_version_number.c
+       @cd afscell && xcodebuild clean