+
+xcode: have-xcodebuild
+ rel=`grep AC_INIT configure.in | cut -d' ' -f2 | cut -d')' -f1`; \
+ def="GCC_PREPROCESSOR_DEFINITIONS=\"VERSION=\\\"$$rel\\\"\""; \
+ xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
+ -configuration Default $$def build
+
+xcode-clean: have-xcodebuild