OSDN Git Service

* Makefile.in (install-license): Install COPYING file as well.
[pf3gnuchains/pf3gnuchains4x.git] / winsup / Makefile.in
1 # Makefile.in for windows stuff
2 # Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2006
3 # Red Hat, Inc.
4 #
5 # This file is part of Cygwin.
6 #
7 # This software is a copyrighted work licensed under the terms of the
8 # Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
9 # details.
10
11 # This makefile requires GNU make.
12
13 SHELL:=@SHELL@
14 VPATH:=@srcdir@
15 srcdir:=@srcdir@
16 objdir:=.
17
18 target_alias:=@target_alias@
19 build_alias:=@build_alias@
20 host_alias:=@host_alias@
21 prefix:=@prefix@
22
23 program_transform_name:=@program_transform_name@
24 exec_prefix:=@exec_prefix@
25 bindir:=@bindir@
26 libdir:=@libdir@
27 ifeq ($(target_alias),$(host_alias))
28 ifeq ($(build_alias),$(host_alias))
29 tooldir:=$(exec_prefix)
30 else
31 tooldir:=$(exec_prefix)/$(target_alias)
32 endif
33 else
34 tooldir:=$(exec_prefix)/$(target_alias)
35 endif
36 datadir:=@datadir@
37 infodir:=@infodir@
38 includedir:=@includedir@
39
40 INSTALL:=@INSTALL@
41 INSTALL_PROGRAM:=@INSTALL_PROGRAM@
42 INSTALL_DATA:=@INSTALL_DATA@
43
44 SUBDIRS=@subdirs@
45 INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)}
46 CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
47 ZLIB=${findstring zlib,$(SUBDIRS)}
48
49 INSTALL_LICENSE:=@INSTALL_LICENSE@
50
51 .PHONY: all install clean all-info info install-info install-license check \
52         $(SUBDIRS) $(INSTALL_SUBDIRS) $(CLEAN_SUBDIRS)
53
54 .SUFFIXES:
55
56 MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}
57
58 ifneq ($(MAKEOVERRIDES_WORKAROUND),)
59     override MAKE:=$(MAKE) $(MAKEOVERRIDES)
60     MAKEOVERRIDES:=
61     export MAKEOVERRIDES
62 endif
63
64 all: Makefile $(SUBDIRS)
65
66 install-license: CYGWIN_LICENSE COPYING
67         ${INSTALL} -d $(prefix)/share/doc/Cygwin
68         for i in $^; do \
69           ${INSTALL} $$i $(prefix)/share/doc/Cygwin ; \
70         done
71
72 install: Makefile $(INSTALL_LICENSE) $(INSTALL_SUBDIRS)
73
74 clean: $(CLEAN_SUBDIRS)
75
76 all-info:
77
78 install-info:
79
80 info:
81
82 $(SUBDIRS):
83         @if cd $@ 2>/dev/null; then \
84             test "$@" = "mingw" && export DISTCC_HOSTS=localhost;\
85             $(MAKE) all || exit 1; \
86         fi || exit 0
87
88 $(INSTALL_SUBDIRS):
89         @if cd ${patsubst install_%,%,$@} 2>/dev/null; then \
90             $(MAKE) install || exit 1; \
91         fi || exit 0
92
93 $(CLEAN_SUBDIRS):
94         @if cd ${patsubst clean_%,%,$@} 2>/dev/null; then \
95             $(MAKE) clean || exit 1; \
96         fi || exit 0
97
98 .PRECIOUS: Makefile
99
100 Makefile: Makefile.in $(srcdir)/configure.in config.status
101         $(SHELL) config.status
102
103 config.status: configure
104         $(SHELL) config.status --recheck
105
106 # The below rule is intended to run configure only when "make check" is
107 # actually specified, i.e., not in a cross-compilation environment.  The
108 # cygwin configuration is copied and modified to ensure that the same configuration
109 # parameters are passed when the testsuite is configured as when cygwin was configured.
110 check: cygwin
111         @if [ -f testsuite/config.status ]; then \
112             cd testsuite; \
113         else \
114             (mkdir testsuite 2>/dev/null || exit 0); \
115             cd testsuite; \
116             sed -e 's%winsup/cygwin\>%winsup/testsuite%g' ../cygwin/config.status > config.status; \
117             chmod a+x config.status; \
118             sh ./config.status --recheck; \
119             sh ./config.status; \
120         fi; \
121         $(MAKE) check
122
123 utils: cygwin mingw
124
125 mingw: w32api
126
127 cygwin: w32api
128
129 cygserver: cygwin
130
131 install_utils: cygwin mingw
132
133 install_mingw: w32api
134
135 install_cygwin: w32api
136
137 install_cygserver: cygwin
138
139 lsaauth: mingw cygwin