1##  -*- Mode: Makefile -*-
2##
3## Makefile.am -- process this file with automake to produce Makefile.in
4##
5## Copyright (C)    1997-2018 by Bruce Korb
6## Author:          Bruce Korb <bkorb@gnu.org>
7##
8## This file is part of AutoGen.
9##
10## AutoGen is free software: you can redistribute it and/or modify it
11## under the terms of the GNU General Public License as published by the
12## Free Software Foundation, either version 3 of the License, or
13## (at your option) any later version.
14##
15## AutoGen is distributed in the hope that it will be useful, but
16## WITHOUT ANY WARRANTY; without even the implied warranty of
17## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18## See the GNU General Public License for more details.
19##
20## You should have received a copy of the GNU General Public License along
21## with this program.  If not, see <http://www.gnu.org/licenses/>.
22
23COMPAT_CSRC = chmod.c pathfind.c snprintf.c strchr.c strdup.c strftime.c \
24	strsignal.c
25COMPAT_HDRS = compat.h strsignal.h windows-config.h unlocked-io.h
26COMPAT_GEN  = bootstrap.dir strsignal.def strsignal.tpl
27EXTRA_DIST  = $(COMPAT_CSRC) $(COMPAT_HDRS) $(COMPAT_GEN)
28
29MAINTAINERCLEANFILES = strsignal.h
30
31all:
32	:
33
34strsignal.h : strsignal.def strsignal.tpl
35	@if $(AGexe) --version >&- 2>&- ; then \
36	  echo $(AGexe) -L $(srcdir) $(srcdir)/strsignal.def ; \
37	  top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) \
38	    $(AGexe) -L $(srcdir) $(srcdir)/strsignal.def ; \
39	elif $(AGnam) --version >&- 2>&- ; then \
40	  echo $(AGnam) -L $(srcdir) $(srcdir)/strsignal.def ; \
41	  top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) \
42	    $(AGnam) -L $(srcdir) $(srcdir)/strsignal.def ; \
43	elif test -s $(srcdir)/$@; then \
44	  echo "WARNING: $(AGnam) not available, current $(srcdir)/$@ used"; \
45	else \
46	  echo "ERROR: $(srcdir)/$@ has been corrupted"; exit 1;\
47	fi
48
49.NOTPARALLEL:
50
51# compat/Makefile.am ends here
52