]> sourceware.org Git - newlib-cygwin.git/blob - winsup/Makefile.in
Cygwin: Always configure in testsuite subdirectory
[newlib-cygwin.git] / winsup / Makefile.in
1 # Makefile.in for windows stuff
2 #
3 # This file is part of Cygwin.
4 #
5 # This software is a copyrighted work licensed under the terms of the
6 # Cygwin license. Please consult the file "CYGWIN_LICENSE" for
7 # details.
8
9 # This makefile requires GNU make.
10
11 SHELL:=@SHELL@
12 VPATH:=@srcdir@
13 srcdir:=@srcdir@
14 objdir:=.
15
16 target_alias:=@target_alias@
17 build_alias:=@build_alias@
18 host_alias:=@host_alias@
19 prefix:=@prefix@
20
21 program_transform_name:=@program_transform_name@
22 exec_prefix:=@exec_prefix@
23 bindir:=@bindir@
24 libdir:=@libdir@
25 ifeq ($(target_alias),$(host_alias))
26 ifeq ($(build_alias),$(host_alias))
27 tooldir:=$(exec_prefix)
28 else
29 tooldir:=$(exec_prefix)/$(target_alias)
30 endif
31 else
32 tooldir:=$(exec_prefix)/$(target_alias)
33 endif
34 datarootdir:=@datarootdir@
35 datadir:=@datadir@
36 infodir:=@infodir@
37 includedir:=@includedir@
38
39 INSTALL:=@INSTALL@
40 INSTALL_PROGRAM:=@INSTALL_PROGRAM@
41 INSTALL_DATA:=@INSTALL_DATA@
42
43 SUBDIRS=@subdirs@
44 INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)}
45 CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
46
47 .PHONY: all install clean distclean all-info info install-info install-license check \
48 $(SUBDIRS) $(INSTALL_SUBDIRS) $(CLEAN_SUBDIRS)
49
50 .SUFFIXES:
51
52 MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}
53
54 ifneq ($(MAKEOVERRIDES_WORKAROUND),)
55 override MAKE:=$(MAKE) $(MAKEOVERRIDES)
56 MAKEOVERRIDES:=
57 export MAKEOVERRIDES
58 endif
59
60 all: Makefile $(SUBDIRS)
61
62 install-license: CYGWIN_LICENSE COPYING
63 ${INSTALL} -d $(DESTDIR)$(prefix)/share/doc/Cygwin
64 for i in $^; do \
65 ${INSTALL} $$i $(DESTDIR)$(prefix)/share/doc/Cygwin ; \
66 done
67
68 install: Makefile install-license $(INSTALL_SUBDIRS)
69
70 clean distclean: $(CLEAN_SUBDIRS)
71
72 all-info:
73
74 install-info:
75
76 info:
77
78 $(SUBDIRS):
79 @${MAKE} -C $@ all || ([ "$@" == doc ] && echo "*** error ignored")
80
81 $(INSTALL_SUBDIRS):
82 @${MAKE} -C $(patsubst install_%,%,$@) install || ([ "$@" == install_doc ] && echo "*** error ignored")
83
84 $(CLEAN_SUBDIRS):
85 @if cd $(patsubst clean_%,%,$@) 2>/dev/null; then \
86 $(MAKE) clean || exit 1; \
87 fi || exit 0
88
89 .PRECIOUS: Makefile
90
91 Makefile: Makefile.in $(srcdir)/configure config.status
92 $(SHELL) config.status
93
94 config.status: configure
95 $(SHELL) config.status --recheck
96
97 check: cygwin
98 $(MAKE) -C testsuite check
99
100 utils: cygwin
101
102 cygwin:
103
104 cygserver: cygwin
105
106 install_utils: cygwin
107
108 install_cygwin:
109
110 install_cygserver: cygwin
This page took 0.040211 seconds and 5 git commands to generate.