newlib/winsup/w32api/Makefile.in

147 lines
3.2 KiB
Makefile
Raw Normal View History

# @configure_input@
2000-02-17 20:38:33 +01:00
#
#
# Makefile.in
#
# This file is part of a free library for the Win32 API.
PACKAGE = @PACKAGE_TARNAME@
VERSION = @PACKAGE_VERSION@
RELEASE = @PACKAGE_RELEASE@
# This library 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.
2000-02-17 20:38:33 +01:00
SHELL = @SHELL@
srcdir = @srcdir@
VPATH = @srcdir@
target_alias = @target@
conf_prefix = @prefix@
# FIXME: this needs an appropriate AC_SUBST
host_os = mingw32
2000-02-17 20:38:33 +01:00
2000-10-20 06:39:21 +02:00
TAR = tar
TARFLAGS = --lzma -
TARFILEEXT = .tar.lzma
2000-10-20 06:39:21 +02:00
SUBDIRS = lib
2011-12-10 18:24:25 +01:00
DISTFILES = \
ChangeLog aclocal.m4 configure.ac Makefile.in Makefile.comm.in configure \
config.guess config.sub install-sh README.w32api TODO CONTRIBUTIONS
all: $(SUBDIRS)
2000-10-20 06:39:21 +02:00
%-subdirs:
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir $*; \
done
$(SUBDIRS):
$(MAKE) -C $@
check test:
$(MAKE) -C lib $@
2000-10-20 06:39:21 +02:00
install uninstall:
for dir in $(SUBDIRS); do \
(cd $$dir; $(MAKE) $@); \
done
ifdef SNAPDATE
distdir = $(PACKAGE)-$(VERSION)-$(SNAPDATE)-$(host_os)
else
CYGRELEASE = $(RELEASE)
ifneq (,$(findstring cygwin, $(target_alias)))
distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)
else
distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)-$(host_os)
endif
endif
2000-02-17 20:38:33 +01:00
ifneq (,$(findstring mingw, $(target_alias)))
dist_prefix=
else
dist_prefix=/$(conf_prefix)
endif
ifneq (,$(findstring cygwin, $(target_alias)))
TARFLAGS = j
TARFILEEXT = .tar.bz2
endif
dist: srcdist bindist
srcdist:
2000-10-20 06:39:21 +02:00
rm -rf $(distdir)
mkdir $(distdir)
chmod 755 $(distdir)
for file in $(DISTFILES); do \
cp -p $(srcdir)/$$file $(distdir)/$$file ; \
2000-02-17 20:38:33 +01:00
done
for dir in $(SUBDIRS); do \
(cd $$dir; $(MAKE) distdir=../$(distdir) dist); \
2000-02-17 20:38:33 +01:00
done
rm -f $(distdir)-src$(TARFILEEXT)
$(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir)
2000-10-20 06:39:21 +02:00
ifneq (,$(findstring cygwin, $(target_alias)))
2000-10-20 06:39:21 +02:00
bindist:
rm -rf $(distdir)
mkdir $(distdir)
chmod 755 $(distdir)
$(MAKE) install prefix=`pwd`/$(distdir)$(dist_prefix) exec_prefix=`pwd`/$(distdir)$(dist_prefix)
rm -f $(distdir)$(TARFILEEXT)
cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) *
else
bindist:
rm -rf $(distdir)
mkdir $(distdir)
chmod 755 $(distdir)
$(MAKE) install prefix=`pwd`/$(distdir)$(dist_prefix) exec_prefix=`pwd`/$(distdir)$(dist_prefix)
rm -f $(distdir)$(TARFILEEXT)
cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)-dev$(TARFILEEXT) *
endif
2000-10-20 06:39:21 +02:00
snapshot:
make dist SNAPDATE=$(shell date '+%Y%m%d')
# Makefile must be rebuilt if Makefile.in is modified,
# or if config.status is updated.
#
Makefile: Makefile.in config.status
2000-10-20 06:39:21 +02:00
$(SHELL) config.status
# config.status itself must be updated if configure is modified;
# this requires a distinct invocation of itself.
#
config.status: configure
$(SHELL) config.status --recheck
2000-10-20 06:39:21 +02:00
mostlyclean-top:
rm -f *~
clean-top: mostlyclean-top
2000-10-20 06:39:21 +02:00
rm -rf $(distdir)
rm -f $(distdir)*$(TARFILEEXT)
2000-10-20 06:39:21 +02:00
maintainer-clean-top:
mostlyclean: mostlyclean-top mostlyclean-subdirs
2000-10-20 06:39:21 +02:00
clean: mostlyclean-top clean-subdirs
2000-10-20 06:39:21 +02:00
distclean: clean-top
$(MAKE) -C lib/directx distclean
$(MAKE) -C lib/ddk distclean
2000-10-20 06:39:21 +02:00
$(MAKE) -C lib distclean
rm -f Makefile config.status config.log config.cache TAGS *~
2000-10-20 06:39:21 +02:00
maintainer-clean: maintainer-clean-subdirs
.PHONY: lib check test
# Makefile.in: end of file