File: Makefile.am

package info (click to toggle)
ngircd 25-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,736 kB
  • sloc: ansic: 19,041; sh: 5,175; makefile: 655; xml: 220
file content (52 lines) | stat: -rw-r--r-- 1,556 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# ngIRCd -- The Next Generation IRC Daemon
# Copyright (c)2001-2008 Alexander Barton <alex@barton.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# Please read the file COPYING, README and AUTHORS for more information.
#

SUBDIRS = ngIRCd.xcodeproj ngIRCd.pmdoc

EXTRA_DIST = de.barton.ngircd.plist.tmpl config.h preinstall.sh postinstall.sh

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

clean-local:
	rm -rf build
	rm -f de.barton.ngircd.plist

maintainer-clean-local:
	rm -f Makefile Makefile.in

# -eof-