newlib-cygwin/winsup/Makefile.in

113 lines
2.3 KiB
Makefile
Raw Normal View History

2000-02-18 03:38:33 +08:00
# Makefile.in for windows stuff
#
# This file is part of Cygwin.
#
# This software is a copyrighted work licensed under the terms of the
# Cygwin license. Please consult the file "CYGWIN_LICENSE" for
# details.
# This makefile requires GNU make.
SHELL:=@SHELL@
VPATH:=@srcdir@
srcdir:=@srcdir@
objdir:=.
target_alias:=@target_alias@
build_alias:=@build_alias@
host_alias:=@host_alias@
prefix:=@prefix@
program_transform_name:=@program_transform_name@
exec_prefix:=@exec_prefix@
bindir:=@bindir@
libdir:=@libdir@
2000-02-18 03:38:33 +08:00
ifeq ($(target_alias),$(host_alias))
ifeq ($(build_alias),$(host_alias))
tooldir:=$(exec_prefix)
else
tooldir:=$(exec_prefix)/$(target_alias)
endif
else
tooldir:=$(exec_prefix)/$(target_alias)
endif
datarootdir:=@datarootdir@
datadir:=@datadir@
infodir:=@infodir@
includedir:=@includedir@
2000-02-18 03:38:33 +08:00
INSTALL:=@INSTALL@
INSTALL_PROGRAM:=@INSTALL_PROGRAM@
INSTALL_DATA:=@INSTALL_DATA@
SUBDIRS=cygwin cygserver doc utils testsuite
2000-02-18 03:38:33 +08:00
INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)}
CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
.PHONY: all install clean distclean all-info info install-info install-license check \
2000-06-23 06:28:35 +08:00
$(SUBDIRS) $(INSTALL_SUBDIRS) $(CLEAN_SUBDIRS)
2000-02-18 03:38:33 +08:00
.SUFFIXES:
MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}
ifneq ($(MAKEOVERRIDES_WORKAROUND),)
override MAKE:=$(MAKE) $(MAKEOVERRIDES)
MAKEOVERRIDES:=
export MAKEOVERRIDES
endif
2000-02-18 03:38:33 +08:00
all: Makefile $(SUBDIRS)
install-license: CYGWIN_LICENSE COPYING
${INSTALL} -d $(DESTDIR)$(prefix)/share/doc/Cygwin
for i in $^; do \
${INSTALL} $$i $(DESTDIR)$(prefix)/share/doc/Cygwin ; \
done
2000-02-18 03:38:33 +08:00
install: Makefile install-license $(INSTALL_SUBDIRS)
clean distclean: $(CLEAN_SUBDIRS)
2000-02-18 03:38:33 +08:00
2000-06-23 06:28:35 +08:00
all-info:
install-info:
info:
2000-02-18 03:38:33 +08:00
$(SUBDIRS):
@${MAKE} -C $@ all || ([ "$@" == doc ] && echo "*** error ignored")
2000-02-18 03:38:33 +08:00
$(INSTALL_SUBDIRS):
@${MAKE} -C $(patsubst install_%,%,$@) install || ([ "$@" == install_doc ] && echo "*** error ignored")
2000-02-18 03:38:33 +08:00
$(CLEAN_SUBDIRS):
@if cd $(patsubst clean_%,%,$@) 2>/dev/null; then \
$(MAKE) clean || exit 1; \
fi || exit 0
2000-02-18 03:38:33 +08:00
.PRECIOUS: Makefile
Makefile: Makefile.in ${patsubst %,%/Makefile.in,$(SUBDIRS)} $(srcdir)/configure config.status
2000-02-18 03:38:33 +08:00
$(SHELL) config.status
config.status: configure
$(SHELL) config.status --recheck
check: cygwin
$(MAKE) -C testsuite check
utils: cygwin
cygwin:
cygserver: cygwin
testsuite: cygwin
install_utils: cygwin
install_cygwin:
install_cygserver: cygwin