]> arthur.barton.de Git - ngircd-alex.git/blob - contrib/MacOSX/Makefile.am
Install /Library/LaunchDaemons/de.barton.ngircd.plist into $(DESTDIR)
[ngircd-alex.git] / contrib / MacOSX / Makefile.am
1 #
2 # ngIRCd -- The Next Generation IRC Daemon
3 # Copyright (c)2001-2008 Alexander Barton <alex@barton.de>
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 # Please read the file COPYING, README and AUTHORS for more information.
10 #
11 # $Id: Makefile.am,v 1.3 2008/02/17 15:31:15 alex Exp $
12 #
13
14 SUBDIRS = ngIRCd.xcodeproj
15
16 EXTRA_DIST = de.barton.ngircd.plist.tmpl config.h cvs-version.h
17
18 SUFFIXES = .tmpl .
19
20 .tmpl:
21         sed \
22             -e s@:SBINDIR:@${sbindir}@ \
23             <$< >$@
24
25 install-data-local:
26         [ `uname -s` != "Darwin" ] || make install-sys-darwin
27
28 install-sys-darwin:
29         @if [ `id -u` -eq 0 ]; then \
30           make install-sys-darwin-root; \
31         else \
32           echo; \
33           echo " ** NOTE: Not installing with root privileges, so the LaunchDaemon script"; \
34           echo " ** \"/Library/LaunchDaemons/de.barton.ngircd.plist\" can't be installed/updated!"; \
35           echo; \
36         fi
37
38 install-sys-darwin-root: de.barton.ngircd.plist
39         install -d -m 755 -o root -g wheel $(DESTDIR)/Library/LaunchDaemons
40         install -c -m 644 -b -o root -g wheel de.barton.ngircd.plist \
41          $(DESTDIR)/Library/LaunchDaemons/de.barton.ngircd.plist
42         @echo
43         @echo " ** \"/Library/LaunchDaemons/de.barton.ngircd.plist\" has been installed,"
44         @echo " ** but is disabled. Use launchctl(8) to enable/run ngIRCd on Darwin/Mac OS X."
45         @echo
46
47 clean-local:
48         rm -rf build
49
50 maintainer-clean-local:
51         rm -f Makefile Makefile.in
52
53 # -eof-