1# Makefile.in generated by automake 1.11.6 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6# Foundation, Inc.
7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14# PARTICULAR PURPOSE.
15
16@SET_MAKE@
17
18#
19# ngIRCd -- The Next Generation IRC Daemon
20# Copyright (c)2001-2015 Alexander Barton (alex@barton.de) and Contributors
21#
22# This program is free software; you can redistribute it and/or modify
23# it under the terms of the GNU General Public License as published by
24# the Free Software Foundation; either version 2 of the License, or
25# (at your option) any later version.
26# Please read the file COPYING, README and AUTHORS for more information.
27#
28VPATH = @srcdir@
29am__make_dryrun = \
30  { \
31    am__dry=no; \
32    case $$MAKEFLAGS in \
33      *\\[\ \	]*) \
34        echo 'am--echo: ; @echo "AM"  OK' | $(MAKE) -f - 2>/dev/null \
35          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
36      *) \
37        for am__flg in $$MAKEFLAGS; do \
38          case $$am__flg in \
39            *=*|--*) ;; \
40            *n*) am__dry=yes; break;; \
41          esac; \
42        done;; \
43    esac; \
44    test $$am__dry = yes; \
45  }
46pkgdatadir = $(datadir)/@PACKAGE@
47pkgincludedir = $(includedir)/@PACKAGE@
48pkglibdir = $(libdir)/@PACKAGE@
49pkglibexecdir = $(libexecdir)/@PACKAGE@
50am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
51install_sh_DATA = $(install_sh) -c -m 644
52install_sh_PROGRAM = $(install_sh) -c
53install_sh_SCRIPT = $(install_sh) -c
54INSTALL_HEADER = $(INSTALL_DATA)
55transform = $(program_transform_name)
56NORMAL_INSTALL = :
57PRE_INSTALL = :
58POST_INSTALL = :
59NORMAL_UNINSTALL = :
60PRE_UNINSTALL = :
61POST_UNINSTALL = :
62build_triplet = @build@
63host_triplet = @host@
64subdir = .
65DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
66	$(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
67	ChangeLog NEWS ar-lib config.guess config.sub depcomp \
68	install-sh missing
69ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
70am__aclocal_m4_deps = $(top_srcdir)/configure.ac
71am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
72	$(ACLOCAL_M4)
73am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
74 configure.lineno config.status.lineno
75mkinstalldirs = $(install_sh) -d
76CONFIG_HEADER = $(top_builddir)/src/config.h
77CONFIG_CLEAN_FILES =
78CONFIG_CLEAN_VPATH_FILES =
79AM_V_GEN = $(am__v_GEN_@AM_V@)
80am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
81am__v_GEN_0 = @echo "  GEN   " $@;
82AM_V_at = $(am__v_at_@AM_V@)
83am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
84am__v_at_0 = @
85SOURCES =
86DIST_SOURCES =
87RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
88	html-recursive info-recursive install-data-recursive \
89	install-dvi-recursive install-exec-recursive \
90	install-html-recursive install-info-recursive \
91	install-pdf-recursive install-ps-recursive install-recursive \
92	installcheck-recursive installdirs-recursive pdf-recursive \
93	ps-recursive uninstall-recursive
94am__can_run_installinfo = \
95  case $$AM_UPDATE_INFO_DIR in \
96    n|no|NO) false;; \
97    *) (install-info --version) >/dev/null 2>&1;; \
98  esac
99RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
100  distclean-recursive maintainer-clean-recursive
101AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
102	$(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
103	distdir dist dist-all distcheck
104ETAGS = etags
105CTAGS = ctags
106DIST_SUBDIRS = $(SUBDIRS)
107DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
108distdir = $(PACKAGE)-$(VERSION)
109top_distdir = $(distdir)
110am__remove_distdir = \
111  if test -d "$(distdir)"; then \
112    find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
113      && rm -rf "$(distdir)" \
114      || { sleep 5 && rm -rf "$(distdir)"; }; \
115  else :; fi
116am__relativize = \
117  dir0=`pwd`; \
118  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
119  sed_rest='s,^[^/]*/*,,'; \
120  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
121  sed_butlast='s,/*[^/]*$$,,'; \
122  while test -n "$$dir1"; do \
123    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
124    if test "$$first" != "."; then \
125      if test "$$first" = ".."; then \
126        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
127        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
128      else \
129        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
130        if test "$$first2" = "$$first"; then \
131          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
132        else \
133          dir2="../$$dir2"; \
134        fi; \
135        dir0="$$dir0"/"$$first"; \
136      fi; \
137    fi; \
138    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
139  done; \
140  reldir="$$dir2"
141DIST_ARCHIVES = $(distdir).tar.gz
142GZIP_ENV = --best
143distuninstallcheck_listfiles = find . -type f -print
144am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
145  | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
146distcleancheck_listfiles = find . -type f -print
147ACLOCAL = @ACLOCAL@
148AMTAR = @AMTAR@
149AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
150AR = @AR@
151AUTOCONF = @AUTOCONF@
152AUTOHEADER = @AUTOHEADER@
153AUTOMAKE = @AUTOMAKE@
154AWK = @AWK@
155CC = @CC@
156CCDEPMODE = @CCDEPMODE@
157CFLAGS = @CFLAGS@
158CPP = @CPP@
159CPPFLAGS = @CPPFLAGS@
160CYGPATH_W = @CYGPATH_W@
161DEFS = @DEFS@
162DEPDIR = @DEPDIR@
163ECHO_C = @ECHO_C@
164ECHO_N = @ECHO_N@
165ECHO_T = @ECHO_T@
166EGREP = @EGREP@
167EXEEXT = @EXEEXT@
168GREP = @GREP@
169INSTALL = @INSTALL@
170INSTALL_DATA = @INSTALL_DATA@
171INSTALL_PROGRAM = @INSTALL_PROGRAM@
172INSTALL_SCRIPT = @INSTALL_SCRIPT@
173INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
174LDFLAGS = @LDFLAGS@
175LIBOBJS = @LIBOBJS@
176LIBS = @LIBS@
177LN_S = @LN_S@
178LTLIBOBJS = @LTLIBOBJS@
179MAKEINFO = @MAKEINFO@
180MKDIR_P = @MKDIR_P@
181OBJEXT = @OBJEXT@
182OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
183OPENSSL_LIBS = @OPENSSL_LIBS@
184PACKAGE = @PACKAGE@
185PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
186PACKAGE_NAME = @PACKAGE_NAME@
187PACKAGE_STRING = @PACKAGE_STRING@
188PACKAGE_TARNAME = @PACKAGE_TARNAME@
189PACKAGE_URL = @PACKAGE_URL@
190PACKAGE_VERSION = @PACKAGE_VERSION@
191PATH_SEPARATOR = @PATH_SEPARATOR@
192PKG_CONFIG = @PKG_CONFIG@
193PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
194PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
195RANLIB = @RANLIB@
196SET_MAKE = @SET_MAKE@
197SHELL = @SHELL@
198STRIP = @STRIP@
199U = @U@
200VERSION = @VERSION@
201abs_builddir = @abs_builddir@
202abs_srcdir = @abs_srcdir@
203abs_top_builddir = @abs_top_builddir@
204abs_top_srcdir = @abs_top_srcdir@
205ac_ct_AR = @ac_ct_AR@
206ac_ct_CC = @ac_ct_CC@
207am__include = @am__include@
208am__leading_dot = @am__leading_dot@
209am__quote = @am__quote@
210am__tar = @am__tar@
211am__untar = @am__untar@
212bindir = @bindir@
213build = @build@
214build_alias = @build_alias@
215build_cpu = @build_cpu@
216build_os = @build_os@
217build_vendor = @build_vendor@
218builddir = @builddir@
219datadir = @datadir@
220datarootdir = @datarootdir@
221docdir = @docdir@
222dvidir = @dvidir@
223exec_prefix = @exec_prefix@
224host = @host@
225host_alias = @host_alias@
226host_cpu = @host_cpu@
227host_os = @host_os@
228host_vendor = @host_vendor@
229htmldir = @htmldir@
230includedir = @includedir@
231infodir = @infodir@
232install_sh = @install_sh@
233libdir = @libdir@
234libexecdir = @libexecdir@
235localedir = @localedir@
236localstatedir = @localstatedir@
237mandir = @mandir@
238mkdir_p = @mkdir_p@
239oldincludedir = @oldincludedir@
240pdfdir = @pdfdir@
241prefix = @prefix@
242program_transform_name = @program_transform_name@
243psdir = @psdir@
244runstatedir = @runstatedir@
245sbindir = @sbindir@
246sharedstatedir = @sharedstatedir@
247srcdir = @srcdir@
248sysconfdir = @sysconfdir@
249target_alias = @target_alias@
250top_build_prefix = @top_build_prefix@
251top_builddir = @top_builddir@
252top_srcdir = @top_srcdir@
253SUBDIRS = doc src man contrib
254EXTRA_DIST = README.md INSTALL.md autogen.sh configure.ng .clang_complete .mailmap
255all: all-recursive
256
257.SUFFIXES:
258am--refresh: Makefile
259	@:
260$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
261	@for dep in $?; do \
262	  case '$(am__configure_deps)' in \
263	    *$$dep*) \
264	      echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
265	      $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
266		&& exit 0; \
267	      exit 1;; \
268	  esac; \
269	done; \
270	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
271	$(am__cd) $(top_srcdir) && \
272	  $(AUTOMAKE) --foreign Makefile
273.PRECIOUS: Makefile
274Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
275	@case '$?' in \
276	  *config.status*) \
277	    echo ' $(SHELL) ./config.status'; \
278	    $(SHELL) ./config.status;; \
279	  *) \
280	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
281	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
282	esac;
283
284$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
285	$(SHELL) ./config.status --recheck
286
287$(top_srcdir)/configure:  $(am__configure_deps)
288	$(am__cd) $(srcdir) && $(AUTOCONF)
289$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
290	$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
291$(am__aclocal_m4_deps):
292
293# This directory's subdirectories are mostly independent; you can cd
294# into them and run `make' without going through this Makefile.
295# To change the values of `make' variables: instead of editing Makefiles,
296# (1) if the variable is set in `config.status', edit `config.status'
297#     (which will cause the Makefiles to be regenerated when you run `make');
298# (2) otherwise, pass the desired values on the `make' command line.
299$(RECURSIVE_TARGETS):
300	@fail= failcom='exit 1'; \
301	for f in x $$MAKEFLAGS; do \
302	  case $$f in \
303	    *=* | --[!k]*);; \
304	    *k*) failcom='fail=yes';; \
305	  esac; \
306	done; \
307	dot_seen=no; \
308	target=`echo $@ | sed s/-recursive//`; \
309	list='$(SUBDIRS)'; for subdir in $$list; do \
310	  echo "Making $$target in $$subdir"; \
311	  if test "$$subdir" = "."; then \
312	    dot_seen=yes; \
313	    local_target="$$target-am"; \
314	  else \
315	    local_target="$$target"; \
316	  fi; \
317	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
318	  || eval $$failcom; \
319	done; \
320	if test "$$dot_seen" = "no"; then \
321	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
322	fi; test -z "$$fail"
323
324$(RECURSIVE_CLEAN_TARGETS):
325	@fail= failcom='exit 1'; \
326	for f in x $$MAKEFLAGS; do \
327	  case $$f in \
328	    *=* | --[!k]*);; \
329	    *k*) failcom='fail=yes';; \
330	  esac; \
331	done; \
332	dot_seen=no; \
333	case "$@" in \
334	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
335	  *) list='$(SUBDIRS)' ;; \
336	esac; \
337	rev=''; for subdir in $$list; do \
338	  if test "$$subdir" = "."; then :; else \
339	    rev="$$subdir $$rev"; \
340	  fi; \
341	done; \
342	rev="$$rev ."; \
343	target=`echo $@ | sed s/-recursive//`; \
344	for subdir in $$rev; do \
345	  echo "Making $$target in $$subdir"; \
346	  if test "$$subdir" = "."; then \
347	    local_target="$$target-am"; \
348	  else \
349	    local_target="$$target"; \
350	  fi; \
351	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
352	  || eval $$failcom; \
353	done && test -z "$$fail"
354tags-recursive:
355	list='$(SUBDIRS)'; for subdir in $$list; do \
356	  test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
357	done
358ctags-recursive:
359	list='$(SUBDIRS)'; for subdir in $$list; do \
360	  test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
361	done
362
363ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
364	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
365	unique=`for i in $$list; do \
366	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367	  done | \
368	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
369	      END { if (nonempty) { for (i in files) print i; }; }'`; \
370	mkid -fID $$unique
371tags: TAGS
372
373TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
374		$(TAGS_FILES) $(LISP)
375	set x; \
376	here=`pwd`; \
377	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
378	  include_option=--etags-include; \
379	  empty_fix=.; \
380	else \
381	  include_option=--include; \
382	  empty_fix=; \
383	fi; \
384	list='$(SUBDIRS)'; for subdir in $$list; do \
385	  if test "$$subdir" = .; then :; else \
386	    test ! -f $$subdir/TAGS || \
387	      set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
388	  fi; \
389	done; \
390	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
391	unique=`for i in $$list; do \
392	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
393	  done | \
394	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
395	      END { if (nonempty) { for (i in files) print i; }; }'`; \
396	shift; \
397	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
398	  test -n "$$unique" || unique=$$empty_fix; \
399	  if test $$# -gt 0; then \
400	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
401	      "$$@" $$unique; \
402	  else \
403	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
404	      $$unique; \
405	  fi; \
406	fi
407ctags: CTAGS
408CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
409		$(TAGS_FILES) $(LISP)
410	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
411	unique=`for i in $$list; do \
412	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
413	  done | \
414	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
415	      END { if (nonempty) { for (i in files) print i; }; }'`; \
416	test -z "$(CTAGS_ARGS)$$unique" \
417	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
418	     $$unique
419
420GTAGS:
421	here=`$(am__cd) $(top_builddir) && pwd` \
422	  && $(am__cd) $(top_srcdir) \
423	  && gtags -i $(GTAGS_ARGS) "$$here"
424
425distclean-tags:
426	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
427
428distdir: $(DISTFILES)
429	$(am__remove_distdir)
430	test -d "$(distdir)" || mkdir "$(distdir)"
431	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
432	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
433	list='$(DISTFILES)'; \
434	  dist_files=`for file in $$list; do echo $$file; done | \
435	  sed -e "s|^$$srcdirstrip/||;t" \
436	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
437	case $$dist_files in \
438	  */*) $(MKDIR_P) `echo "$$dist_files" | \
439			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
440			   sort -u` ;; \
441	esac; \
442	for file in $$dist_files; do \
443	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
444	  if test -d $$d/$$file; then \
445	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
446	    if test -d "$(distdir)/$$file"; then \
447	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
448	    fi; \
449	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
450	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
451	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
452	    fi; \
453	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
454	  else \
455	    test -f "$(distdir)/$$file" \
456	    || cp -p $$d/$$file "$(distdir)/$$file" \
457	    || exit 1; \
458	  fi; \
459	done
460	@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
461	  if test "$$subdir" = .; then :; else \
462	    $(am__make_dryrun) \
463	      || test -d "$(distdir)/$$subdir" \
464	      || $(MKDIR_P) "$(distdir)/$$subdir" \
465	      || exit 1; \
466	    dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
467	    $(am__relativize); \
468	    new_distdir=$$reldir; \
469	    dir1=$$subdir; dir2="$(top_distdir)"; \
470	    $(am__relativize); \
471	    new_top_distdir=$$reldir; \
472	    echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
473	    echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
474	    ($(am__cd) $$subdir && \
475	      $(MAKE) $(AM_MAKEFLAGS) \
476	        top_distdir="$$new_top_distdir" \
477	        distdir="$$new_distdir" \
478		am__remove_distdir=: \
479		am__skip_length_check=: \
480		am__skip_mode_fix=: \
481	        distdir) \
482	      || exit 1; \
483	  fi; \
484	done
485	-test -n "$(am__skip_mode_fix)" \
486	|| find "$(distdir)" -type d ! -perm -755 \
487		-exec chmod u+rwx,go+rx {} \; -o \
488	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
489	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
490	  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
491	|| chmod -R a+r "$(distdir)"
492dist-gzip: distdir
493	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
494	$(am__remove_distdir)
495
496dist-bzip2: distdir
497	tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
498	$(am__remove_distdir)
499
500dist-lzip: distdir
501	tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
502	$(am__remove_distdir)
503
504dist-lzma: distdir
505	tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
506	$(am__remove_distdir)
507
508dist-xz: distdir
509	tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
510	$(am__remove_distdir)
511
512dist-tarZ: distdir
513	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
514	$(am__remove_distdir)
515
516dist-shar: distdir
517	shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
518	$(am__remove_distdir)
519
520dist-zip: distdir
521	-rm -f $(distdir).zip
522	zip -rq $(distdir).zip $(distdir)
523	$(am__remove_distdir)
524
525dist dist-all: distdir
526	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
527	$(am__remove_distdir)
528
529# This target untars the dist file and tries a VPATH configuration.  Then
530# it guarantees that the distribution is self-contained by making another
531# tarfile.
532distcheck: dist
533	case '$(DIST_ARCHIVES)' in \
534	*.tar.gz*) \
535	  GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
536	*.tar.bz2*) \
537	  bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
538	*.tar.lzma*) \
539	  lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
540	*.tar.lz*) \
541	  lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
542	*.tar.xz*) \
543	  xz -dc $(distdir).tar.xz | $(am__untar) ;;\
544	*.tar.Z*) \
545	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
546	*.shar.gz*) \
547	  GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
548	*.zip*) \
549	  unzip $(distdir).zip ;;\
550	esac
551	chmod -R a-w $(distdir); chmod u+w $(distdir)
552	mkdir $(distdir)/_build
553	mkdir $(distdir)/_inst
554	chmod a-w $(distdir)
555	test -d $(distdir)/_build || exit 0; \
556	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
557	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
558	  && am__cwd=`pwd` \
559	  && $(am__cd) $(distdir)/_build \
560	  && ../configure --srcdir=.. --prefix="$$dc_install_base" \
561	    $(AM_DISTCHECK_CONFIGURE_FLAGS) \
562	    $(DISTCHECK_CONFIGURE_FLAGS) \
563	  && $(MAKE) $(AM_MAKEFLAGS) \
564	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
565	  && $(MAKE) $(AM_MAKEFLAGS) check \
566	  && $(MAKE) $(AM_MAKEFLAGS) install \
567	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
568	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
569	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
570	        distuninstallcheck \
571	  && chmod -R a-w "$$dc_install_base" \
572	  && ({ \
573	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
574	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
575	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
576	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
577	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
578	      } || { rm -rf "$$dc_destdir"; exit 1; }) \
579	  && rm -rf "$$dc_destdir" \
580	  && $(MAKE) $(AM_MAKEFLAGS) dist \
581	  && rm -rf $(DIST_ARCHIVES) \
582	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
583	  && cd "$$am__cwd" \
584	  || exit 1
585	$(am__remove_distdir)
586	@(echo "$(distdir) archives ready for distribution: "; \
587	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
588	  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
589distuninstallcheck:
590	@test -n '$(distuninstallcheck_dir)' || { \
591	  echo 'ERROR: trying to run $@ with an empty' \
592	       '$$(distuninstallcheck_dir)' >&2; \
593	  exit 1; \
594	}; \
595	$(am__cd) '$(distuninstallcheck_dir)' || { \
596	  echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
597	  exit 1; \
598	}; \
599	test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
600	   || { echo "ERROR: files left after uninstall:" ; \
601	        if test -n "$(DESTDIR)"; then \
602	          echo "  (check DESTDIR support)"; \
603	        fi ; \
604	        $(distuninstallcheck_listfiles) ; \
605	        exit 1; } >&2
606distcleancheck: distclean
607	@if test '$(srcdir)' = . ; then \
608	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \
609	  exit 1 ; \
610	fi
611	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
612	  || { echo "ERROR: files left in build directory after distclean:" ; \
613	       $(distcleancheck_listfiles) ; \
614	       exit 1; } >&2
615check-am: all-am
616check: check-recursive
617all-am: Makefile
618installdirs: installdirs-recursive
619installdirs-am:
620install: install-recursive
621install-exec: install-exec-recursive
622install-data: install-data-recursive
623uninstall: uninstall-recursive
624
625install-am: all-am
626	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
627
628installcheck: installcheck-recursive
629install-strip:
630	if test -z '$(STRIP)'; then \
631	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
632	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
633	      install; \
634	else \
635	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
636	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
637	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
638	fi
639mostlyclean-generic:
640
641clean-generic:
642
643distclean-generic:
644	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
645	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
646
647maintainer-clean-generic:
648	@echo "This command is intended for maintainers to use"
649	@echo "it deletes files that may require special tools to rebuild."
650clean: clean-recursive
651
652clean-am: clean-generic clean-local mostlyclean-am
653
654distclean: distclean-recursive
655	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
656	-rm -f Makefile
657distclean-am: clean-am distclean-generic distclean-tags
658
659dvi: dvi-recursive
660
661dvi-am:
662
663html: html-recursive
664
665html-am:
666
667info: info-recursive
668
669info-am:
670
671install-data-am:
672
673install-dvi: install-dvi-recursive
674
675install-dvi-am:
676
677install-exec-am:
678
679install-html: install-html-recursive
680
681install-html-am:
682
683install-info: install-info-recursive
684
685install-info-am:
686
687install-man:
688
689install-pdf: install-pdf-recursive
690
691install-pdf-am:
692
693install-ps: install-ps-recursive
694
695install-ps-am:
696
697installcheck-am:
698
699maintainer-clean: maintainer-clean-recursive
700	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
701	-rm -rf $(top_srcdir)/autom4te.cache
702	-rm -f Makefile
703maintainer-clean-am: distclean-am maintainer-clean-generic \
704	maintainer-clean-local
705
706mostlyclean: mostlyclean-recursive
707
708mostlyclean-am: mostlyclean-generic
709
710pdf: pdf-recursive
711
712pdf-am:
713
714ps: ps-recursive
715
716ps-am:
717
718uninstall-am:
719
720.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
721	install-am install-strip tags-recursive
722
723.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
724	all all-am am--refresh check check-am clean clean-generic \
725	clean-local ctags ctags-recursive dist dist-all dist-bzip2 \
726	dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
727	dist-zip distcheck distclean distclean-generic distclean-tags \
728	distcleancheck distdir distuninstallcheck dvi dvi-am html \
729	html-am info info-am install install-am install-data \
730	install-data-am install-dvi install-dvi-am install-exec \
731	install-exec-am install-html install-html-am install-info \
732	install-info-am install-man install-pdf install-pdf-am \
733	install-ps install-ps-am install-strip installcheck \
734	installcheck-am installdirs installdirs-am maintainer-clean \
735	maintainer-clean-generic maintainer-clean-local mostlyclean \
736	mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \
737	uninstall uninstall-am
738
739
740clean-local: osxpkg-clean
741	rm -f build-stamp*
742
743maintainer-clean-local:
744	rm -rf autom4te.cache
745	rm -f Makefile.in Makefile aclocal.m4 configure configure.ac
746	rm -f ar-lib mkinstalldirs missing depcomp install-sh
747	rm -f config.log debian
748
749testsuite:
750	cd src/testsuite && ${MAKE} check
751
752lint:
753	cd src/ngircd && ${MAKE} lint
754
755srcdoc:
756	cd doc && ${MAKE} srcdoc
757
758have-xcodebuild:
759	@xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -list \
760	 >/dev/null 2>&1 \
761	 || ( echo; echo "Error: \"xcodebuild\" not found!"; echo; exit 1 )
762
763have-packagemaker:
764	@packagemaker >/dev/null 2>&1; [ $$? -le 1 ] \
765	 || ( echo; echo "Error: \"packagemaker\" not found!"; echo; exit 2)
766
767xcode: have-xcodebuild
768	rel=`git describe|sed -e 's/rel-//g'|sed -e 's/-/~/'`; \
769	 def="GCC_PREPROCESSOR_DEFINITIONS=\"VERSION=\\\"$$rel\\\"\""; \
770	 xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
771	 -configuration Default $$def build
772
773xcode-clean: have-xcodebuild
774	xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
775	 -configuration Default clean
776	rm -fr contrib/MacOSX/build
777
778rpm: distcheck
779	rpm -ta ngircd-*.tar.gz
780
781deb:
782	[ -f debian/rules ] || ln -s contrib/Debian debian
783	dpkg-buildpackage -rfakeroot -i
784
785osxpkg: have-packagemaker osxpkg-dest
786	cd contrib/MacOSX && packagemaker --no-recommend \
787	 --doc ngIRCd.pmdoc \
788	 --out ../../$(distdir).mpkg
789	rm -f $(distdir).mpkg.zip
790	zip -ro9 $(distdir).mpkg.zip $(distdir).mpkg
791	${MAKE} osxpkg-clean
792
793osxpkg-clean:
794	[ ! -r ngircd.dest ] || sudo -n rm -rf ngircd.dest
795	rm -rf ngircd.dest $(distdir).mpkg
796
797osxpkg-dest: have-xcodebuild osxpkg-clean clean
798	./configure --prefix=/opt/ngircd
799	${MAKE} xcode
800	${MAKE} -C contrib/MacOSX de.barton.ngircd.plist
801	mkdir -p ngircd.dest/opt/ngircd/sbin
802	DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C doc install
803	DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C contrib install
804	DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C man install
805	cp contrib/MacOSX/build/Default/ngIRCd \
806	 ngircd.dest/opt/ngircd/sbin/ngircd
807	rm ngircd.dest/opt/ngircd/etc/ngircd.conf
808	echo "Have a nice day IRCing!" >ngircd.dest/opt/ngircd/etc/ngircd.motd
809	chmod -R a-s,og-w,a+rX ngircd.dest
810	sudo chown -R root:wheel ngircd.dest
811
812.PHONY: deb have-packagemaker have-xcodebuild lint osxpkg osxpkg-clean \
813	osxpkg-dest rpm srcdoc testsuite xcode xcode-clean
814
815# -eof-
816
817# Tell versions [3.59,3.63) of GNU make to not export all variables.
818# Otherwise a system limit (for SysV at least) may be exceeded.
819.NOEXPORT:
820