Finish afscell implementation work
[openafs.git] / src / platform / DARWIN / Makefile.in
index edfbddb..c42aa41 100644 (file)
@@ -11,14 +11,18 @@ INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
-include ../../config/Makefile.version
 
-all: OpenAFS.prefPane 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
 
@@ -26,7 +30,9 @@ install: \
        ${DESTDIR}${sbindir}/afssettings
 
 dest: \
-       ${DEST}/etc/afssettings
+       ${DEST}/etc/afssettings \
+       ${DEST}/installer/afscell.bundle \
+       ${DEST}/installer/InstallerSections.plist
 
 ${DESTDIR}${sbindir}/afssettings: afssettings
        ${INSTALL} $? $@
@@ -34,7 +40,16 @@ ${DESTDIR}${sbindir}/afssettings: afssettings
 ${DEST}/etc/afssettings: afssettings
        ${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) -rf OpenAFS.prefPane
        $(RM) -rf AFSPreference/build
-       $(RM) -f *.o core afssettings AFS_component_version_number.c 
+       $(RM) -f *.o core afssettings AFS_component_version_number.c
+       @cd afscell && xcodebuild clean