summaryrefslogtreecommitdiff
path: root/compat/Makefile.am
blob: 81b94763b33a435e52dcca5cfbe92fbe0290318b (plain)
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
##  -*- Mode: Makefile -*-
##
## Makefile.am -- process this file with automake to produce Makefile.in
##
## Time-stamp:      "2012-04-07 09:31:30 bkorb"
## Copyright (c)    1997-2012 by Bruce Korb
## Author:          Bruce Korb <bkorb@gnu.org>
##
## This file is part of AutoGen.
##
## AutoGen 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 3 of the License, or
## (at your option) any later version.
##
## AutoGen is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
## See the GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License along
## with this program.  If not, see <http://www.gnu.org/licenses/>.

COMPAT_CSRC = chmod.c pathfind.c snprintf.c strchr.c strdup.c strftime.c \
	strsignal.c
COMPAT_HDRS = compat.h strsignal.h windows-config.h unlocked-io.h
COMPAT_GEN  = bootstrap.dir strsignal.def strsignal.tpl
EXTRA_DIST  = $(COMPAT_CSRC) $(COMPAT_HDRS) $(COMPAT_GEN)

MAINTAINERCLEANFILES = strsignal.h

all:
	:

strsignal.h : strsignal.def strsignal.tpl
	@if $(AGexe) --version >&- 2>&- ; then \
	  echo $(AGexe) -L $(srcdir) $(srcdir)/strsignal.def ; \
	  top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) \
	    $(AGexe) -L $(srcdir) $(srcdir)/strsignal.def ; \
	elif $(AGnam) --version >&- 2>&- ; then \
	  echo $(AGnam) -L $(srcdir) $(srcdir)/strsignal.def ; \
	  top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) \
	    $(AGnam) -L $(srcdir) $(srcdir)/strsignal.def ; \
	elif test -s $(srcdir)/$@; then \
	  echo "WARNING: $(AGnam) not available, current $(srcdir)/$@ used"; \
	else \
	  echo "ERROR: $(srcdir)/$@ has been corrupted"; exit 1;\
	fi

.NOTPARALLEL:

# compat/Makefile.am ends here