+ dpkg-buildpackage -rfakeroot -i
+
+osxpkg: have-packagemaker osxpkg-dest
+ cd contrib/MacOSX && packagemaker --no-recommend \
+ --doc ngIRCd.pmdoc \
+ --out ../../$(distdir).mpkg
+ rm -f $(distdir).mpkg.zip
+ zip -ro9 $(distdir).mpkg.zip $(distdir).mpkg
+ ${MAKE} osxpkg-clean
+
+osxpkg-clean:
+ [ ! -r ngircd.dest ] || sudo -n rm -rf ngircd.dest
+ rm -rf ngircd.dest $(distdir).mpkg
+
+osxpkg-dest: have-xcodebuild osxpkg-clean clean
+ ./configure --prefix=/opt/ngircd
+ ${MAKE} xcode
+ ${MAKE} -C contrib/MacOSX de.barton.ngircd.plist
+ mkdir -p ngircd.dest/opt/ngircd/sbin
+ DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C doc install
+ DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C contrib install
+ DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C man install
+ cp contrib/MacOSX/build/Default/ngIRCd \
+ ngircd.dest/opt/ngircd/sbin/ngircd
+ rm ngircd.dest/opt/ngircd/etc/ngircd.conf
+ echo "Have a nice day IRCing!" >ngircd.dest/opt/ngircd/etc/ngircd.motd
+ chmod -R a-s,og-w,a+rX ngircd.dest
+ sudo chown -R root:wheel ngircd.dest
+
+.PHONY: deb have-packagemaker have-xcodebuild lint osxpkg osxpkg-clean \
+ osxpkg-dest rpm srcdoc testsuite xcode xcode-clean