+2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
+
+ * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
+ naming standard for Cygwin.
+
2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
Reimplement getopt.c to add getopt_long_only() function.
# This makefile requires GNU make.
-PACKAGE = mingw-runtime
VERSION = @PACKAGE_VERSION@
CYGRELEASE = 1
with_cross_host = @with_cross_host@
prefix = @prefix@
conf_prefix = @prefix@
+# FIXME: this needs an appropriate AC_SUBST
+host_os = mingw32
+
+ifneq (,$(findstring cygwin, $(target_alias)))
+PACKAGE = mingw-runtime
+else
+PACKAGE = mingwrt
+endif
program_transform_name = @program_transform_name@
exec_prefix = @exec_prefix@
inst_bindir:=$(bindir)
inst_includedir:=$(includedir)
inst_libdir:=$(libdir)
-inst_docdir:=$(prefix)/doc/mingw-runtime
+inst_docdir:=$(prefix)/doc/runtime
endif
endif
-rm -f Makefile
ifdef SNAPDATE
- distdir=$(PACKAGE)-$(VERSION)-$(SNAPDATE)
+ distdir=$(PACKAGE)-$(VERSION)-$(SNAPDATE)-$(host_os)
else
ifneq (,$(findstring cygwin, $(target_alias)))
distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)
else
- distdir=$(PACKAGE)-$(VERSION)
+ distdir=$(PACKAGE)-$(VERSION)-$(host_os)
endif
endif
$(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir)
+ifneq (,$(findstring cygwin, $(target_alias)))
bindist:
rm -rf $(distdir)
mkdir $(distdir)
rm -f $(distdir).tar.gz
cd $(distdir); \
$(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) *
+else
+bindist:
+ rm -rf $(distdir)
+ mkdir $(distdir)
+ chmod 755 $(distdir)
+ $(MAKE) install prefix=$(shell pwd)/$(distdir)$(dist_prefix)
+ rm -f $(distdir).tar.gz
+ cd $(distdir); \
+ $(TAR) $(TARFLAGS)cf ../$(distdir)-dev$(TARFILEEXT) * --exclude=bin; \
+ $(TAR) $(TARFLAGS)cf ../$(distdir)-dll$(TARFILEEXT) bin/*.dll
+endif
snapshot:
make dist SNAPDATE=$(shell date '+%Y%m%d')