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
${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