]> sourceware.org Git - newlib-cygwin.git/blame - winsup/Makefile.in
* Makefile.in: Exit immediately if a sub-make fails.
[newlib-cygwin.git] / winsup / Makefile.in
CommitLineData
1fd5e000 1# Makefile.in for windows stuff
02b503c8 2# Copyright 1995, 1996, 1997, 1998, 1999, 2000 Red Hat, Inc.
1fd5e000
CF
3#
4# This file is part of Cygwin.
5#
6# This software is a copyrighted work licensed under the terms of the
7# Cygwin license. Please consult the file "CYGWIN_LICENSE" for
8# details.
9
10# This makefile requires GNU make.
11
12SHELL:=@SHELL@
13VPATH:=@srcdir@
14srcdir:=@srcdir@
15objdir:=.
16
17target_alias:=@target_alias@
18build_alias:=@build_alias@
19host_alias:=@host_alias@
20prefix:=@prefix@
21
22program_transform_name:=@program_transform_name@
23exec_prefix:=@exec_prefix@
24bindir:=@bindir@
25libdir:=@libdir@
26ifeq ($(target_alias),$(host_alias))
27ifeq ($(build_alias),$(host_alias))
28tooldir:=$(exec_prefix)
29else
30tooldir:=$(exec_prefix)/$(target_alias)
31endif
32else
33tooldir:=$(exec_prefix)/$(target_alias)
34endif
35datadir:=@datadir@
36infodir:=@infodir@
37includedir:=@includedir@
38
7cf5e175 39SUBDIRS=@SUBDIRS@
1fd5e000
CF
40INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)}
41CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
42
39630fe3 43.PHONY: all install clean all-info info install-info check \
344a1924 44 $(SUBDIRS) $(INSTALL_SUBDIRS) $(CLEAN_SUBDIRS)
1fd5e000
CF
45
46.SUFFIXES:
47
7f363152
CF
48MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}
49
50ifneq ($(MAKEOVERRIDES_WORKAROUND),)
51 override MAKE:=$(MAKE) $(MAKEOVERRIDES)
52 MAKEOVERRIDES:=
53 export MAKEOVERRIDES
54endif
1fd5e000
CF
55
56all: Makefile $(SUBDIRS)
57
58install: Makefile $(INSTALL_SUBDIRS)
59
60clean: $(CLEAN_SUBDIRS)
61
344a1924
CF
62all-info:
63
64install-info:
65
66info:
67
1fd5e000 68$(SUBDIRS):
a9f20457 69 @if cd $@ 2>/dev/null; then \
94597cd0 70 $(MAKE) all || exit 1; \
a9f20457 71 fi || exit 0
1fd5e000
CF
72
73$(INSTALL_SUBDIRS):
a9f20457 74 @if cd ${patsubst install_%,%,$@} 2>/dev/null; then \
94597cd0 75 $(MAKE) install || exit 1; \
a9f20457 76 fi || exit 0
1fd5e000
CF
77
78$(CLEAN_SUBDIRS):
a9f20457 79 @if cd ${patsubst clean_%,%,$@} 2>/dev/null; then \
94597cd0 80 $(MAKE) clean || exit 1; \
a9f20457 81 fi || exit 0
1fd5e000
CF
82
83.PRECIOUS: Makefile
84
85Makefile: Makefile.in $(srcdir)/configure.in config.status
86 $(SHELL) config.status
87
88config.status: configure
89 $(SHELL) config.status --recheck
39630fe3 90
a9f20457 91check: cygwin
7cf5e175 92 @if [ -f testsuite/config.status ]; then \
a9f20457
CF
93 cd testsuite; \
94 else \
7cf5e175 95 (mkdir testsuite 2>/dev/null || exit 0); \
a9f20457
CF
96 cd testsuite; \
97 sed -n -e '1,/^done/{' -e 's%/cygwin%/testsuite%g; ' -e 'p; }' ../cygwin/config.status > config.status; \
98 chmod a+x config.status; \
99 sh ./config.status --recheck; \
100 sh ./config.status; \
101 fi; \
102 $(MAKE) check
15d0cbd6
CF
103
104utils: cygwin mingw
105
106mingw: w32api
107
108cygwin: w32api
109
94597cd0 110cinstall: mingw bz2lib zlib
15d0cbd6
CF
111
112install_utils: cygwin mingw
113
114install_mingw: w32api
115
116install_cygwin: w32api
117
94597cd0 118install_cinstall: mingw bz2lib zlib
This page took 0.064929 seconds and 5 git commands to generate.