+
+SUBDIRS = ngIRCd.xcodeproj ngIRCd.pmdoc
+
+EXTRA_DIST = de.barton.ngircd.plist.tmpl config.h
+
+SUFFIXES = .tmpl .
+
+.tmpl:
+ sed \
+ -e s@:SBINDIR:@${sbindir}@ \
+ <$< >$@
+
+install-data-local:
+ [ `uname -s` != "Darwin" ] || make install-sys-darwin
+
+install-sys-darwin:
+ @if [ `id -u` -eq 0 ]; then \
+ make install-sys-darwin-root; \
+ else \
+ echo; \
+ echo " ** NOTE: Not installing with root privileges, so the LaunchDaemon script"; \
+ echo " ** \"/Library/LaunchDaemons/de.barton.ngircd.plist\" can't be installed/updated!"; \
+ echo; \
+ fi
+
+install-sys-darwin-root: de.barton.ngircd.plist
+ install -d -m 755 -o root -g wheel $(DESTDIR)/Library/LaunchDaemons
+ install -c -m 644 -b -o root -g wheel de.barton.ngircd.plist \
+ $(DESTDIR)/Library/LaunchDaemons/de.barton.ngircd.plist
+ @echo
+ @echo " ** \"/Library/LaunchDaemons/de.barton.ngircd.plist\" has been installed,"
+ @echo " ** but is disabled. Use launchctl(8) to enable/run ngIRCd on Darwin/Mac OS X."
+ @echo